trainers#
The trainers module provides a high-level interface to train models via
chemtrain’s algorithms.
The Base Trainers provide the core algorithms, while
Combining Trainers, allows the construction of more
advanced training schemes from multiple algorithms.
Base Trainers#
|
Trainer class for parametrizing potentials via the DiffTRe method. |
|
Trainer class for parametrizing potentials via the DiffTRe method. |
|
Trainer for direct prediction of molecular properties. |
|
Parametrizes potential models via the Force Matching method. |
|
Trainer for relative entropy minimization. |
|
Trainer for stochastic gradient Markov-chain Monte Carlo training based on force-matching. |
Combining Trainers#
|
Interleaves updates to train models using multiple algorithms. |
Train Multiple Models#
|
Train an ensemble of models by starting optimization from different initial parameter sets, for use in uncertainty quantification applications. |
Trainer Templates#
|
Abstract class implementing common properties and methods of single point estimate Trainers using optax optimizers. |
|
Trainer for parallelized MLE training based on a dataset. |
|
A class that saves the best parameter obtained so far based on the validation loss and determines whether the optimization can be stopped based on some stopping criterion. |
Extensions#
chemtrain provides some extensions to the Base Trainers, e.g., to log data to services allowing live tracking of the training process.
Logging to Weights and Biases#
|
Logs DiffTRe training statistics to Weights & Biases. |