MCPcopy Index your code
hub / github.com/chemprop/chemprop

github.com/chemprop/chemprop @v2.2.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.2.4 ↗ · + Follow
1,345 symbols 4,537 edges 117 files 300 documented · 22% updated 6d agov2.2.4 · 2026-07-01★ 2,3988 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Chemprop Logo

Chemprop

PyPI - Python Version PyPI version Anaconda-Server Badge Build Status Documentation Status License: MIT Downloads Downloads Downloads

Chemprop is a repository containing message passing neural networks for molecular property prediction.

Documentation can be found here.

There are tutorial notebooks in the examples/ directory.

Chemprop recently underwent a ground-up rewrite and new major release (v2.0.0). A helpful transition guide from Chemprop v1 to v2 can be found here. This includes a side-by-side comparison of CLI argument options, a list of which arguments will be implemented in later versions of v2, and a list of changes to default hyperparameters.

License: Chemprop is free to use under the MIT License. The Chemprop logo is free to use under CC0 1.0.

References: Please cite the appropriate papers if Chemprop is helpful to your research.

A known inconsistency between these references and this repository is the edge update function in all chemprop versions uses preactivation instead of postactivation initial edge hidden states. Details can be found in the SI of the version 2 paper.

Selected Applications: Chemprop has been successfully used in the following works.

Version 1.x

For users who have not yet made the switch to Chemprop v2.0, please reference the following resources.

v1 Documentation

  • Documentation of Chemprop v1 is available here. Note that the content of this site is several versions behind the final v1 release (v1.7.1) and does not cover the full scope of features available in chemprop v1.
  • The v1 README is the best source for documentation on more recently-added features.
  • Please also see descriptions of all the possible command line arguments in the v1 args.py file.

v1 Tutorials and Examples

  • Benchmark scripts - scripts from our 2023 paper, providing examples of many features using Chemprop v1.6.1
  • ACS Fall 2023 Workshop - presentation, interactive demo, exercises on Google Colab with solution key
  • Google Colab notebook - several examples, intended to be run in Google Colab rather than as a Jupyter notebook on your local machine
  • nanoHUB tool - a notebook of examples similar to the Colab notebook above, doesn't require any installation
  • YouTube video - lecture accompanying nanoHUB tool
  • These slides provide a Chemprop tutorial and highlight additions as of April 28th, 2020

v1 Known Issues

We have discontinued support for v1 since v2 has been released, but we still appreciate v1 bug reports and will tag them as v1-wontfix so the community can find them easily.

Core symbols most depended-on inside this repo

main
called by 113
chemprop/cli/main.py
fit
called by 60
chemprop/uncertainty/calibrator.py
build
called by 32
chemprop/nn/ffn.py
get
called by 30
chemprop/utils/utils.py
load_from_file
called by 30
chemprop/models/model.py
apply
called by 30
chemprop/uncertainty/calibrator.py
normalize_inputs
called by 25
chemprop/data/datasets.py
from_smi
called by 24
chemprop/data/datapoints.py

Shape

Function 639
Method 476
Class 185
Route 45

Languages

Python100%

Modules by API surface

chemprop/data/datasets.py87 symbols
chemprop/nn/metrics.py77 symbols
tests/cli/test_cli_MAB.py49 symbols
chemprop/uncertainty/calibrator.py47 symbols
tests/cli/test_cli_regression_mol.py42 symbols
chemprop/nn/predictors.py39 symbols
tests/unit/nn/test_loss_functions.py35 symbols
chemprop/uncertainty/estimator.py35 symbols
tests/unit/featurizers/test_cgr.py33 symbols
chemprop/cli/train.py28 symbols
tests/unit/nn/test_transforms.py26 symbols
tests/unit/data/test_dataset.py25 symbols

For agents

$ claude mcp add chemprop \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact