Giter VIP home page Giter VIP logo

zhanfeichem / xas3d Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 74.17 MB

IHEP BSRF Zhaohf Group. We construct a 3D graph neural network model XAS3D to simulate XANES. It turns to be faster than the traditional XANES fitting method when we combine the simulation model and XANES optimization algorithm to fit the 3D structure of the given system.

License: MIT License

Python 99.36% Shell 0.64%

xas3d's Introduction

XAS3D

We construct a 3D graph neural network model XAS3D to simulate XANES. It turns to be faster than the traditional XANES fitting method when we combine the simulation model and XANES optimization algorithm to fit the 3D structure of the given system. IHEP BSRF Zhaohf Group

Installation Overview

conda create -n pyg_pl python==3.9
source /scratchfs/heps/zhanf/miniconda3/bin/activate pyg_pl
pip install pytorch-lightning==1.8 -i https://mirrors.ustc.edu.cn/pypi/web/simple
pip install tqdm

PYG installation

pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1+cu117 -f https://download.pytorch.org/whl/torch_stable.html -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install torch-sparse torch-scatter -f https://pytorch-geometric.com/whl/torch-1.13.1+cu117.html
pip install torch-geometric -f https://pytorch-geometric.com/whl/torch-1.13.1+cu117.html
pip install torch-cluster torch-spline-conv -f https://pytorch-geometric.com/whl/torch-1.13.1+cu117.html
pip install torchmetrics==0.7

Fitting related package

pip install sympy
pip install nlopt
pip install pymatgen
pip install frechetdist

Running

example_Fe3O4: python Fit.py
example_Fe_element: python Fit.py
example_Mndoped: python Fit.py
First, copy the dataset from the "datasets" folder to the "example" folder, or change the dataset file location in the code.
Then run "python Fit.py"

Hyperparameter tuning

example_Fe3O4/Fe3O4_XAS3Dabs_hyper : python BAT_gpu_hyper.py
Run "python BAT_gpu_hyper.py" to batch submit the running scripts to the Slurm cluster.

xas3d's People

Contributors

zhanfeichem avatar

Watchers

Kostas Georgiou avatar  avatar Jianhua Yin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.