GithubHelp home page GithubHelp logo

dohyun1411 / prediction-of-magnetic-properties-using-cgcnn Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 2.13 MB

Prediction of Magnetic Properties using Crystal Graph Convolutional Neural Netowrk

Python 100.00%

prediction-of-magnetic-properties-using-cgcnn's Introduction

Prediction-of-Magnetic-Properties-using-CGCNN

Requirements

This package requires:

  • Pytorch
  • scikit-learn
  • pymatgen

To prepare material data, there are some additional requirements:

  • requests
  • tqdm
  • click

How to train

Since it is impossible to upload all data to github, to reproduce the training the data set should be downloaded with prepare_data.py and used for training.

How to prepare data

First, you should get your own API from The Materials Project databse(https://materialsproject.org/). Then, please write it to the your-api-key.txt. To prepare material data,

python prepare_data.py --input=mp-ids-46744.csv --output=id_prop.csv

How to train

Before you train our model, you should prepare dataset.

python main.py --train-ratio 0.6 --val-ratio 0.2 --test-ratio 0.2 data/sample-regression

How to predict

We provide some good performance samples. Use prediction.py as a sample prediction To predict with our pre-trained model,

python predict.py dataset_manipulated_pretrained/model_best.pth.tar data/sample-regression

You will be able to see the prediction results at the generated file 'test_result.csv'

References

@article{PhysRevLett.120.145301,
  title = {Crystal Graph Convolutional Neural Networks for an Accurate and Interpretable Prediction of Material Properties},
  author = {Xie, Tian and Grossman, Jeffrey C.},
  journal = {Phys. Rev. Lett.},
  volume = {120},
  issue = {14},
  pages = {145301},
  numpages = {6},
  year = {2018},
  month = {Apr},
  publisher = {American Physical Society},
  doi = {10.1103/PhysRevLett.120.145301},
  url = {https://link.aps.org/doi/10.1103/PhysRevLett.120.145301}
}

prediction-of-magnetic-properties-using-cgcnn's People

Contributors

dohyun1411 avatar sanghwa56 avatar

Stargazers

 avatar

Watchers

 avatar  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.