https://github.com/divelab/AIRS

avatar
作者
筋斗云
阅读量:0

这里写自定义目录标题


https://github.com/divelab/AIRS

环境设置
我们将用于安装依赖项和设置环境。我们建议使用 Python 3.9 Miniconda 安装程序。conda
安装完成后,运行conda
conda env create -f environment.yml
然后运行以下代码以激活环境
conda activate potnet
我们正在用于实现我们的图神经网络。安装 via conda 似乎有问题,因此我们明确使用 pip 作为torch-geometrictorch-geometric
pip install torch-scatter2.1.0 torch-sparse0.6.16 torch-cluster1.6.0 torch-spline-conv1.2.1 -f https://data.pyg.org/whl/torch-1.12.1%2Bcu116.html

pip install dgl1.1.1
pip install pydantic
1.10.2
pip install cython3.0.0
pip install ase
3.22.1
pip install jarvis-tools2022.9.16
pip install numpy
1.21.6
pip install pandarallel1.6.3
pip install pandas
1.3.5
pip install periodictable1.6.1
pip install pymatgen
2021.3.3
pip install pytorch-ignite0.4.10
pip install pyyaml
6.0
pip install scikit-learn1.0.2
pip install scipy
1.7.3
pip install tqdm==4.64.1

pip install torch-geometric
请注意,我们正在使用旧版本的 JARVIS 工具包。最新的 JARVIS 工具包将包含新版本的数据集,其中包含的数据比我们在论文中介绍的数据更多。jarvis-tools==2022.9.16
运行求和算法
要运行求和算法,请运行以下命令以安装算法包(请记住将其替换为您自己的目标。TARGET_PATH
cd functions
tar xzvf gsl-latest.tar.gz
cd gsl-2.7.1
./configure --prefix=TARGET_PATH
sudo apt install libgsl-dev
make
make install
Then edit by adding~/.bashrc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:TARGET_PATH/lib/

source ~/.bashrc
or create another terminal.

Now we back to directory and runfunctions
python setup.py build_ext --inplace
Then the algorithm is installed as Cython package. A simple way to test if it is successfully installed is to run below in the root directory.
python test_algorithm.py

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!