-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
dflow-MP_cgcnn_jupyter
https://github.com/ZijianCai/dflow/tree/main/MP_cgcnn_jupyter
This is a simple introduction to dflow, materials screening and machine learning.
Setup
- Setup conda environment (assume you have conda installed)
conda create -n dflow-helloworld python=3.9- Activate conda environment and install jupyter notebook
conda activate dflow-jupyter
pip install notebookHow to use
- Clone this repository to local
git clone https://github.com/git clone https://github.com/cdinto the repo
cd dflow_jupyter- Start up jupyter notebook
jupyter notebook- Docker images should include python, pymatgen, PyTorch and scikit-learn.
Prepare your screening code
-
Get your API key from materials project: https://legacy.materialsproject.org/open. Use it as your first argument (sys.argv[1])
-
Write your criteria for screening. In the current version, the number of elements (nelements) are applied to screen as a demo. For your onwer purpose, you can write different screening criteria, such as must include certain elements, energy above hull must be smaller than a certain value, band gap must be smaller than a certain value, et al.
-
Note: the screening code will output a csv file (id_prop.csv) to the designed folder (sys.argv[2])
Prepare CGCNN code
- The CGCNN code has been prepared, which is from: https://github.com/txie-93/cgcnn
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
