Downloads · 30 days
0
lab-cosmo/pet-mad-explorer
pet-mad-explorer is a machine learning model from lab-cosmo. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as bsd-3-clause.
The model can be downloaded directly from Hugging Face and loaded for use with PyTorch.
Downloads · 30 days
0
Access
Public
Updated Jun 26, 2025
Repo size
2.8 MB
Likes
0
Public
Click a slice to open those files.
.ckpt2.8 MB · 100%
From the Hugging Face model README
The model can be downloaded directly from Hugging Face and loaded for use with PyTorch.
To download the model, you can use wget or curl to download the model checkpoint directly from the Hugging Face repository.
wget https://huggingface.co/lab-cosmo/pet-mad-explorer/resolve/main/pet-mad-explorer-latest.ckpt
You can use PET-MAD last-layer features together with a pre-trained sketch-map dimensionality reduction to obtain 2D and 3D representations of a dataset, e.g. to identify structural or chemical motifs. This can be used as a stand-alone feature builder, or combined with the chemiscope viewer to generate an interactive visualization.
import ase.io
import chemiscope
from pet_mad.explore import PETMADFeaturizer
featurizer = PETMADFeaturizer(version="latest")
# Load structures
frames = ase.io.read("dataset.xyz", ":")
# You can just compute features
features = featurizer(frames, None)
# Or create an interactive visualization in a Jupyter notebook
chemiscope.explore(
frames,
featurize=featurizer
)