Giter Site home page Giter Site logo

cgcnn-hd's Introduction

The CGCNN-HD is a python code for dropout-based uncertainty quantification for stability prediction with CGCNN (by T. Xie et al.) developed by prof. Yousung Jung group at KAIST (contact: [email protected]).

Developers

Juhwan Noh

Dependencies

  • Python3.6
  • Numpy
  • Pytorch == 0.4.1.post2 (CUDA 8.0)
  • Pymatgen
  • Sklearn
  • ASE

How to use

1. Database setting Reference formation energy value of the previous our ChemComm paper (Chem. Commun.,2019,55,13418-13421) can be found in Mg-Mn-O_database/MgMnO_form_e.data.k500.json

If you want to use org_cif database

  • cd Mg-Mn-O_database
  • tar xvf org_cifs.tar
  • cp id_prop.r4_nn8.orgcif.csv org_cifs/id_prop.csv
  • cp atom_init.json org_cifs/

If you want to use scaled database

  • cd Mg-Mn-O_database
  • tar xvf lattice_scaled.tar
  • cp id_prop.r4_nn8.scaled.csv lattice_scaled/id_prop.csv
  • cp atom_init.json lattice_scaled/

2. Dropout Sampling

If you want to use org_cif database

  • Currently, crystal graph is constructed only if maximum number of neighboring atom = 8 and cutoff radius = 4A
  • Change root_dir = '/your/data/path/' in dropout_sampling.py to Mg-Mn-O_database/org_cifs/
  • python dropout_sampling.py cgcnn_hd_rcut4_nn8.best.pth.tar
  • You may get dropout_test.csv file (name,predicted mean,predicted standard deviation)

If you want to use scaled database

  • Currently, crystal graph is constructed only if maximum number of neighboring atom = 8 and cutoff radius = 4A
  • Change root_dir = '/your/data/path/' in dropout_sampling.py to Mg-Mn-O_database/lattice_scaled/
  • python dropout_sampling.py cgcnn_hd_rcut4_nn8.best.pth.tar
  • You may get dropout_test.csv file (name,predicted mean,predicted standard deviation)

3. Training with your own database

  • Currently, crystal graph is constructed only if maximum number of neighboring atom = 8 and cutoff radius = 4A
  • Change root_dir = '/your/data/path/' in model_train.py to path for your own dataset
  • Set MYPYTHON="your/python/path" and MODELPREF="your/model/pref" in training.sh with your own setting
  • sh training.sh

cgcnn-hd's People

Contributors

jhwann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

snu-micc

cgcnn-hd's Issues

Update dependencies

Just a head's up, there are two clarifications that should be made to the list of dependencies:

  1. ASE is not mentioned
  2. Python 3 should be Python 3.6. Anything >= 3.7 causes an issue with pytorch's async flag.

Other than that, I was able to run the training.

Undefined variable dropout_samples in cgcnn_hd.py

In cgcnn_hd.py, the sampling function returns dropout_samples, which is never defined. There also appears to be several other undefined variables. It seems dropout_sampling.py is not up-to-date.

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.