Skip to main content

Community contributions to chemprop

Project description

chemprop-contrib

Community-contributed extensions to the Chemprop machine learning package

Usage

Installation

chemprop-contrib can either be pip installed directly

pip install chemprop-contrib

or installed as an optional dependency when installing Chemprop

pip install chemprop[contrib]

Then, the contributed packages can be imported in Python as

from chemprop_contrib import <package_name>

Each package includes tests, which can be used to demonstrate the use of the package.

Available Packages

  • moe_regressor: Implements the "Adaptive Mixture of Local Experts" model for regression.
  • mcp: Model context protocol for connecting Chemprop with Large Language Models (AI).
  • set2set: Chemprop-compatible implementation of the Set2Set aggregation function.

Contributing

All community-contributed packages should fork the repository and in a branch on the fork, make a new directory under the chemprop_contrib directory with their name. Then add the following:

  • License for the code (preferably MIT)
  • All associated code files
  • Data files, if needed, and their provenance
  • Documentation (perhaps a Notebook (*.ipynb) or README.md) with instructions on how to use code contributed
  • Tests demonstrating that the code works as intended

If your package has additional dependencies, add them to the list of optional dependencies in the pyproject.toml with the same name as your directory.

Once the package is ready, make a pull request to the main chemprop-contrib repository for a brief review. We provide a template for these pull requests.

Examples

For packages which do not require any new dependencies, see moe_regressor as an example.

For packages which do require additional dependencies, see mcp as an example. Note that one must edit the pyproject.toml and add these dependencies, as mentioned in Contributing.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chemprop_contrib-2026.5.6.tar.gz (16.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chemprop_contrib-2026.5.6-py3-none-any.whl (16.4 MB view details)

Uploaded Python 3

File details

Details for the file chemprop_contrib-2026.5.6.tar.gz.

File metadata

  • Download URL: chemprop_contrib-2026.5.6.tar.gz
  • Upload date:
  • Size: 16.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chemprop_contrib-2026.5.6.tar.gz
Algorithm Hash digest
SHA256 69d5d9649ea8e0b39ed8e25b366dd32b4358361ae97dbccc14ba3cffae9c706a
MD5 421d9ad1bf7ff50a8cf064023472e07d
BLAKE2b-256 e5cd4a3017b748b684478876b25cbec0df2a2732e021c3bdfb6a6bad87b506a4

See more details on using hashes here.

File details

Details for the file chemprop_contrib-2026.5.6-py3-none-any.whl.

File metadata

File hashes

Hashes for chemprop_contrib-2026.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 94196a0489a0752b561ca01cfbd04d65280d773476a1b451dc57eb230400f008
MD5 318ff9842df8eb344278f35092197d2d
BLAKE2b-256 f6f1067ac8b46765f9ef74e96c7870ddd324640f9ac53d22d7b246cd5e64a12a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page