This repository contains the training code and weights for a polymer-solvent ML model presented in the companion paper, AI-assisted discovery of high-temperature dielectrics for energy storage.
This repository is currently set up to run on Linux machines with CUDA 10.2. Please raise a GitHub issue if you want to use this repo with a different configuration. Otherwise, follow these steps for installation:
- Install poetry on your machine.
- If Python3.9 is installed on your machine skip to step 3, if not you will need to install it. There are many ways to do this, one option is detailed below:
- Install Homebrew on your machine.
- Run
brew install python@3.9
. Take note of the path to the python executable.
- Clone this repo on your machine.
- Open a terminal at the root directory of this repository.
- Run
poetry env use /path/to/python3.9/executable
. - Run
poetry install
. - Run
poetry run poe torch-linux_win-cuda102
. - Run
poetry run poe pyg-linux-cuda102
.
The file example.py
contains example code that illustrates how to use the ML model to predict polymer-solvent compatibility. In particular, the model is used to predict if trichlorobenzene is a "bad_solvent", "medium_solvent", or "good_solvent" for polyethylene. To run the file, execute poetry run python example.py
.
I (@rishigurnani) am more than happy to answer any questions about this codebase. If you encounter any troubles, please open a new Issue in the "Issues" tab and I will promptly respond. In addition, if you discover any bugs or have any suggestions to improve the codebase (documentation, features, etc.) please also open a new Issue. This is the power of open source!
This repository is protected under a General Public Use License Agreement, the details of which can be found in GT Open Source General Use License.pdf
.
The version of this codebase that was used in the companion paper is v0.3.0.