Giter Site home page Giter Site logo

akashjn / solvation-energy-ml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from globus-labs/solvation-energy-ml

0.0 0.0 0.0 76.27 MB

Predicting solvation energy using message-passing neural networks

Shell 0.01% Python 0.20% Jupyter Notebook 99.80% Dockerfile 0.01%

solvation-energy-ml's Introduction

Predicting Solvation Energy for Small Molecules with Machine Learning

This repository contains the code associated with a recent paper by Ward et al., Graph-Based Approaches for Predicting Solvation Energy in Multiple Solvents: Open Datasets and Machine Learning Models (also on ChemArxiv)

The version of this repository as of publication is available on the Materials Data Facility.

Using the Model

The best model from our study has been made available for easy use via DLHub. To run it, you only need install the DLHub SDK for Python via Pip:

pip install dlhub_sdk

Once installed, run the model through the run_model.py script in the dlhub directory:

>>> python run_model.py C CC CC=O
{
  "smiles": [
    "C",
    "CC",
    "CC=O"
  ],
  "solvation-energies": [
    [
      0.3075838088989258,
      0.5105352401733398,
      0.9096126556396484,
      1.0906600952148438,
      2.1758193969726562
    ],
    [
      -1.2038593292236328,
      -0.5588760375976562,
      -0.6135234832763672,
      -0.34089183807373047,
      1.6689720153808594
    ],
    [
      -6.803349494934082,
      -6.5320281982421875,
      -6.589166164398193,
      -6.29440975189209,
      -5.189798355102539
    ]
  ],
  "dielectric-constants": [
    20.493,
    35.688,
    46.826,
    24.852,
    78.3553
  ],
  "training-set-distance": [
    0.9882038873152169,
    0.8182617387674459,
    0.5418242643337519
  ],
  "expected-error": [
    1.2369891114952873,
    0.9572314552138276,
    0.6307983394641673
  ],
  "likelihood-error-above-1kcal/mol": [
    0.3958329444154754,
    0.2861134888650363,
    0.1526715392416573
  ]
}

Note how the model produces predictions for the solvation energy in multiple solvents (differentiated by their dielectric constants) and estimates for how large the errors should be.

Installation

The environment for this repository is described using Anaconda. Install it using:

conda env create --file environment.yml --force

The only dependency not included in the environment is Horovod, which we use for data parallel training. Data parallel training let us train our models quickly on supercomputers, but is not necessary to recreate our results.

We recommend you train models without Horovod and also avoid using our complicated training scripts, or consult your supercompuing center for installing Horovod and using it with our environment.

Repository Organization

Our repository is broken into several key folders:

  • data/input: Data as provided
  • data/output: Input data processed into easily processible forms
  • jcesr_ml: Utility functions used in the notebooks

The other folders represent different steps of the analysis. Each should contain its own README describing the purpose of the tests. Notebooks in each folder are labeled based on the order in which they should be executed.

solvation-energy-ml's People

Contributors

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