scglue.models.base.Model
- class scglue.models.base.Model(*args, **kwargs)[source]
Bases:
objectAbstract model class
- Parameters:
net – Network type
*args – Positional arguments are passed to the network constructor
**kwargs – Keyword arguments are passed to the network constructor
Note
Subclasses may override arguments for API definition.
Methods
Prepare model for training
Alias of
.trainer.fit.Alias of
.trainer.get_losses.Save model to file
Upgrade the model if generated by older versions
Attributes
loggernetNeural network module in the model (read-only)
trainerTrainer of the neural network module (read-only)