Skip to main content

CGCNN2

Release PyPI Downloads

As the original Crystal Graph Convolutional Neural Networks (CGCNN) repository is no longer actively maintained, this repository is a reproduction of CGCNN by Xie et al. It includes necessary updates for deprecated components and a few additional functions to ensure smooth operation. Despite its age, CGCNN remains a straightforward and fast deep learning framework that is easy to learn and use.

The package provides the following major functions:

  • Training a CGCNN model using a custom dataset.
  • Predicting material properties with a pre-trained CGCNN model.
  • Fine-tuning a pre-trained CGCNN model on a new dataset.
  • Extracting structural features as descriptors for downstream tasks.

Installation

Make sure you have a Python interpreter, version 3.11 to 3.14. Then, you can simply install cgcnn2 from PyPI using pip:

pip install cgcnn2

or, if you manage your project with uv:

uv add cgcnn2

If you'd like to use the latest unreleased version on the main branch, you can install it directly from GitHub:

pip install git+https://github.com/jcwang587/cgcnn2@main

Get Started

There are entry points for training, predicting, and fine-tuning CGCNN models. For example, to explore the usage of the provided training script cgcnn-tr, you can use the --help option of the command:

cgcnn-tr --help

Similarly, you can access the predicting and fine-tuning functionalities through cgcnn-pr and cgcnn-ft commands. A detailed user guide documentation is available at: https://jcwang.dev/cgcnn2/

References

The original paper describes the CGCNN framework in detail:

@article{PhysRevLett2018,
  title = {Crystal Graph Convolutional Neural Networks for an Accurate and Interpretable Prediction of Material Properties},
  author = {Xie, Tian and Grossman, Jeffrey C.},
  journal = {Phys. Rev. Lett.},
  volume = {120},
  issue = {14},
  pages = {145301},
  numpages = {6},
  year = {2018},
  month = {Apr},
  publisher = {American Physical Society},
  doi = {10.1103/PhysRevLett.120.145301},
  url = {https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.120.145301}
}

Metadata

Release files for cgcnn2 0.6.0

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

Source distribution (sdist)

Source distribution for cgcnn2 0.6.0
File Size Uploaded
cgcnn2-0.6.0.tar.gz 5.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for cgcnn2 0.6.0
File Interpreter ABI Platform
cgcnn2-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 MB

Release files / cgcnn2-0.6.0.tar.gz

Download URL cgcnn2-0.6.0.tar.gz
Size 5.9 MB
Tags Source
SHA-256 checksum
How to use checksums
1875c3aacf30f47d4d7d26790320547248f31ed373f3a55082ea7bb03eb7a3e0
BLAKE2b-256 checksum
How to use checksums
b29cabd14614f694f38e93d0e94099cff769a78085a55ceb379c2fabbb605667
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.

Transparency log

Release files / cgcnn2-0.6.0-py3-none-any.whl

Download URL cgcnn2-0.6.0-py3-none-any.whl
Size 5.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8a45716f3220a5467d97843875fcf3acd08c3d70a1cabfff97d103f6ab7695b8
BLAKE2b-256 checksum
How to use checksums
a4cc58a6067ed5135c1129bc809670fd291b4eea1fb74e02cf93537fb1bc5073
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.2

2 release files

0.3.0

2 release files

0.1.0

2 release files

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