scglue.models.base.Model
- class scglue.models.base.Model(*args, **kwargs)[源代码]
基类:
object
Abstract model class
- 参数:
net – Network type
*args – Positional arguments are passed to the network constructor
**kwargs – Keyword arguments are passed to the network constructor
备注
Subclasses may override arguments for API definition.
方法
为模型训练做准备
Alias of
.trainer.fit
.Alias of
.trainer.get_losses
.Save model to file
Upgrade the model if generated by older versions
属性
logger
net
Neural network module in the model (read-only)
trainer
Trainer of the neural network module (read-only)