xnn.gnn.models.cgcnn_foundation#

The pretrained CGCNN models of the authors, converted weight for weight.

The CGCNN repository (MIT license) publishes eight models trained on Materials Project data: seven regressions (formation energy and absolute energy per atom, band gap, Fermi energy, the base-10 logarithms of the bulk and shear moduli and the Poisson ratio) and a metal / semiconductor classifier. Each checkpoint holds the network’s state dict, the target normalization (a mean and a standard deviation) and the training arguments. The network maps onto CGCNN layer for layer and the normalization becomes property_shift and property_scale.

The element feature table of the repository (atom_init.json, 92 columns for atomic numbers 1 to 100) is the default input of every CGCNN. It is downloaded once into the model cache, like the checkpoints, with a note of the license beside them.

Module Attributes

ATOM_INIT

path in the repository and MD5.

FOUNDATION_MODELS

name -> (path in the repository, MD5, unit of the property).

Functions

atom_init_table([cache_dir, quiet])

The authors' element feature table, (101, 92) in float64 (row Z for atomic number Z).

convert_checkpoint(path[, dtype, atom_features])

A CGCNN with the weights of one of the authors' checkpoints (*.pth.tar).

from_foundation([name, dtype, cache_dir, quiet])

Download (once) and convert one of the authors' pretrained models.