This model predicts superconductor critical temperatures (Tc) using ALIGNN (Atomistic Line Graph Neural Network) fine-tuned on 3D crystal structure graphs.
1from alignn.pretrained import get_figshare_model
2from jarvis.core.atoms import Atoms
3from jarvis.io.vasp.inputs import Poscar
4import torch
5
6# Load model
7model = torch.load("alignn_best.pth")
8model.eval()
9
10# Load crystal structure from CIF
11atoms = Atoms.from_cif("material.cif")
12
13# Convert to ALIGNN graph
14from alignn.graphs import Graph
15g, lg = Graph.atom_dgl_multigraph(atoms)
16
17# Predict critical temperature
18with torch.no_grad():
19 tc_prediction = model(g, lg)
20
21print(f"Predicted Tc: {tc_prediction.item():.2f} K")
1@software{supervision2024,
2 title={SuperVision: Transfer Learning for Superconductor Tc Prediction},
3 author={Your Name},
4 year={2024},
5 url={https://github.com/yourusername/SuperVision}
6}