Metadata-Version: 2.4
Name: cgcnn2
Version: 1.0.0
Summary: Reproduction of Crystal Graph Convolutional Neural Networks
Keywords: computational-materials,fine-tuning,graph-model,python
Author: Jiacheng Wang
Author-email: Jiacheng Wang <jcwang.dev@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Requires-Dist: matplotlib
Requires-Dist: numpy
Requires-Dist: pandas
Requires-Dist: pymatgen>=2026.3.23
Requires-Dist: torch>=2.10
Maintainer: Jiacheng Wang
Maintainer-email: Jiacheng Wang <jcwang.dev@gmail.com>
Requires-Python: >=3.11, <3.16
Project-URL: documentation, https://jcwang.dev/cgcnn2/
Project-URL: homepage, https://github.com/jcwang587/cgcnn2/
Project-URL: repository, https://github.com/jcwang587/cgcnn2/
Description-Content-Type: text/markdown

# CGCNN2

[![Release](https://img.shields.io/github/v/release/jcwang587/cgcnn2)](https://github.com/jcwang587/cgcnn2/releases/latest)
[![PyPI Downloads](https://static.pepy.tech/badge/cgcnn2)](https://pepy.tech/projects/cgcnn2)

A maintained reproduction of the Crystal Graph Convolutional Neural Network ([CGCNN](https://github.com/txie-93/cgcnn)) by Xie and Grossman, whose original repository is no longer active. CGCNN remains a small, fast model for predicting material properties from crystal structures that is easy to learn and use.

- **Train** a model on your own dataset with `cgcnn-tr`.
- **Predict** material properties with a trained model with `cgcnn-pr`.
- **Fine-tune** a trained model on a new dataset with `cgcnn-ft`.
- **Extract** crystal descriptors for downstream tasks with `cgcnn_pred`.

## Installation

```bash
pip install cgcnn2
```

## Documentation

The user guide, examples and API reference are at [jcwang.dev/cgcnn2](https://jcwang.dev/cgcnn2/).

## Reference

Tian Xie and Jeffrey C. Grossman, "Crystal Graph Convolutional Neural Networks for an Accurate and Interpretable Prediction of Material Properties", [Phys. Rev. Lett. 120, 145301 (2018)](https://doi.org/10.1103/PhysRevLett.120.145301).
