Prerequisites:
- JAX
- PyTorch
- schnetpack (commit fed6f625721c14e3f72c9147dd86495dbb269b1e)
Steps:
- (PyTorch) Train a SchNet representation on an MD17 data set. Example:
spktrain experiment=md17 model/representation=schnet data.molecule=ethanol
- (PyTorch) Precompute features and Jacobians for the train and validation set. For this, replace the
MODELDIRplaceholder with the path to the pretrained model and then run
python precompute_jacobians.py --molecule ethanol --modeldir MODELDIR
- (JAX) Fit the force field kernel to forces. Replace the
JACS_TRAINandJACS_TESTplaceholders with the respective paths to the precomputed Jacobians.
python train_schnetkernel.py --lengthscale 256 --jacs_train JACS_TRAIN --jacs_test JACS_TEST