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.
- TrainingOptions.mofa_compat: Literal['full', 'modelonly'] | bool = False#
Save model in MOFA2 compatible format. If
Trueor"full", will include the data in the file. This can result in very large files."modelonly"will save only the trained model.Deprecated since version 0.1.1: This option will be removed in MOFA-FLEX 0.2. If you are missing a feature from the MOFA2 R package, please open an issue.