Giter Site home page Giter Site logo

q20110911 / dtnn_7ib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jenniening/dtnn_7ib

0.0 0.0 0.0 572.01 MB

This is a deep learning model used to predict molecular energy

Home Page: https://www.nyu.edu/projects/yzhang/IMA/

License: MIT License

Makefile 0.28% Python 7.88% Jupyter Notebook 91.84%

dtnn_7ib's Introduction

DTNN_7ib

Molecular energy and ligand stability prediction models based on deep neural tensor networks and MMFF optimized geometries.

Project Organization

├── LICENSE
├── Makefile           <- Makefile, used to create new environment, install requiremnts.
├── README.md          <- The top-level README for developers using this project.
├── data
│   ├── external       <- Data used to generate results in paper.
│   ├── processed      
│   └── raw            <- The original, immutable data dump.
├── models             <- Trained models.
├── notebooks          <- Jupyter notebooks inlcuding tutorials.
├── reports            <- Generated analysis results.
│   └── result_data    <- Result data for confs, used to get conformation stability result.
├── requirements.txt   <- The requirements file for reproducing the analysis environment, e.g.
│                         generated with `pip freeze > requirements.txt`
├── setup.py           <- makes project pip installable (pip install -e .) so src can be imported
├── src                <- Source code for use in this project.
│   ├── __init__.py    <- Makes src a Python module
│   │
│   ├── data           <- Scripts to download or generate data
│   │   └── prepare_dataset.py
│   ├── models         <- Scripts to train models and then use trained models to make
│   │   │                 predictions
│   │   ├── predict_model.py
│   │   └── train_model.py
│
└── tox.ini            <- tox file with settings for running tox; see tox.testrun.org

Detailed Information

Setup:

Setup functions are in Makefile. To see functions in Makefile:

make -f Makefile
  1. Create DTNN_7ib environment:
make Makefile create_environment
  1. Activate environment:
source activate DTNN_7ib 
  1. Install requirements:
make Makefile requirements

Data Preparation: (src/data)

All scipts for data prepartion are in src/data directory. To see the option for data prepation:

python prepare_dataset.py --help

To build qm9mmff dataset for training, validation, testlive and testing

python prepare_dataset.py

To build eMol9_CM:

python prepare_dataset.py --datatype emol9mmff

To build Plati_CM:

python prepare_dataset.py --datatype platinummmff

raw data are in data/raw directory, processed data are in data/processed directory. The processed data we used in data/external directory

Model Training: (src/model)

All scipts for model training are in src/data directory. To see the option for model training:

python train_model.py --help

Train DTNN_7ib model:

python train_model.py --addnewm 

Train TL_QM9M:

python train_model.py --geometry MMFF --transferlearning

Train TL_eMol9_CM:

python train_model.py --datatype emol9mmff --geometry MMFF --transferlearning

Prediction:(src/model)

All scipts for prediction are in src/data directory. To see the option for prediction:

python predict_model.py --help

Performanc of DTNN_7ib on QM9:

python predict_model.py 

Performanc of DTNN_7ib on QM9MMFF:

python predict_model.py  --testpositions mmffpositions

Performance of TL_QM9M on QM9MMFF:

python predict_model.py --modelname TL_QM9_name --testpositions mmffpositions

Peformance of TL_eMol9_CM on eMol9_CM:

python predict_model.py --modelname TL_eMOL9_CM_name --testtype emol9mmff --testpositions positions1

Peformance of TL_eMol9_CM on Plati_CM:

python predict_model.py --modelname TL_eMOL9_CM_name --testtype platinummmff --testpositions positions1

Note:

  1. If you directly run predict_model.py, the MAE and RMSE is for DTNN_7ib trained with best validation error in one of splits (performance of DTNN_7ib in paper is the avarage of five different splits) and transfer learning is applied on the atom vectors learned from this DTNN_7ib model
  2. remember to change the model name

Thanks for DTNN code(https://github.com/atomistic-machine-learning/dtnn), we reimplemented elementary blocks in DTNN.
Ref:Jianing Lu, Cheng Wang and Yingkai Zhang. J. Chem. Theory Comput. https://pubs.acs.org/doi/pdf/10.1021/acs.jctc.9b00001

dtnn_7ib's People

Contributors

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