run.train.train_spin#
- train_spin(model: Model, trainer: Trainer, params_file: str, load_parameters=True, num_train_rounds=-1, num_round_epochs=60)[source]#
Script for background network training
Does not create windows and saves training progress to the
log
folder.- Parameters:
model (engine.Model) – Network model.
trainer (engine.Trainer) – Training tool.
params_file (str) – Parameters file name. See
engine.model.Model.load_params
.load_parameters (bool, optional) – If True loads parameters from a file, otherwise initializes the model again. Defaults to True.
num_train_rounds (int, optional) – Number of training rounds. If -1 the training will continue until the user stops the process. Defaults to -1.
num_round_epochs (int, optional) – Number of epochs in one round. Defaults to 60.