Skip to main content

SolvBERT

Description

This is the code for "SolvBERT for solvation free energy and solubility prediction: a demonstration of an NLP model for predicting the properties of molecular complexes" paper. The preprint of this paper can be found in ChemRxiv with https://doi.org/10.26434/chemrxiv-2022-0hl5p

Installation

  1. python 3.7.12
  2. transformers 2.11.0
  3. wandb 0.12.15
  4. tokenizers 0.7.0
  5. rxnfp 0.0.7

use pip install solv-bert==0.0.7 install this package

Dataset

CombiSolv-QM. The CombiSolv-QM dataset originally came from a study by Vermeire et al. who computed the dataset using a commercial software called COSMOtherm. The dataset consists of 1 million datapoints randomly selected from all possible combinations of 284 commonly used solvents and 11,029 solutes.

CombiSolv-Exp-8780. We managed to download a portion of the CombiSolv-Exp dataset, which originally contains experimental solvent free energy data for 10,145 different solute and solvents combinations from Vermeire et al. The dataset was curated from multiple sources, including the Minnesota Solvation Database, the FreeSolv database, the CompSol database, and a dataset published by Abraham et al. We named the downloaded subset containing 8,780 combinations as CombiSolv-Exp-8780 to distinguish it from the original CombiSolv-Exp dataset.

Solubility. The Solubility dataset was originally from Boobier et al. It was curated from the Open Notebook Science Challenges water solubility dataset and the Reaxys database. This dataset includes ethanol with 695 solutes, benzene with 464 solutes, acetone with 452 solutes, and water with 900 solutes, for a total of 2,511 different combinations, with solubility expressed as log S.

Train

Model use the SMILESlanguagemodel.py to train and the Finetune.py to fine-tune. Each pre-training (SMILESlanguagemodel.py) needs to save the best model for the next step of fine-tune(Finetune.py).

Test

Model use the Predictandeval.py to shart testing. In this step, we also need to save the best model trained in the previous step (Finetune.py) for prediction and evaluation

Release files for solv-bert 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solv-bert 0.0.7
File Size Uploaded
solv-bert-0.0.7.tar.gz 2.2 kB Details

Release files / solv-bert-0.0.7.tar.gz

Download URL solv-bert-0.0.7.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7a3bbaa4137a989c3466bb5e46176f222f200d254e842f0f696a0beea616937f
BLAKE2b-256 checksum
How to use checksums
06e60656136421018c9f971265270e82425e8409c4bc734a76becfdacd068e05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.0.7 This release

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page