mofaflex.TrainingOptions#
- class mofaflex.TrainingOptions(*, device='cuda', batch_size=0, max_epochs=10000, n_particles=1, lr=0.001, early_stopper_patience=100, save_path=None, mofa_compat=False, seed=None, num_workers=0, pin_memory=False)#
Options for training.
Attributes table#
Batch size. |
|
Device to run training on. |
|
Number of steps without relevant improvement to stop training. |
|
Learning rate. |
|
Maximum number of training epochs. |
|
Save model in MOFA2 compatible format. |
|
Number of particles for ELBO estimation. |
|
Number of data loader workers. |
|
Whether to use pinned memory in the data loader. |
|
Path to save model. |
|
Seed for the pseudorandom number generator. |
Methods table#
Attributes#
-
TrainingOptions.early_stopper_patience:
int= 100# Number of steps without relevant improvement to stop training.