A factory function to create a training session object.
sess_training_session(trainer, mb_source, mb_size, model_inputs_to_streams, progress_frequency = NULL, max_samples = NULL, checkpoint_config = NULL, cv_config = NULL, test_config = NULL)
trainer | (Trainer): trainer |
---|---|
mb_source | (MinibatchSource): minibatch source used for training |
mb_size | (minibatch_size_schedule): minibatch schedule for training |
model_inputs_to_streams | (dict): mapping between input variables and input streams |
progress_frequency | (int): frequency in samples for aggregated progress printing |
max_samples | (int): maximum number of samples used for training |
checkpoint_config | (~CheckpointConfig): checkpoint configuration |
cv_config | (~CrossValidationConfig): cross validation configuration |
test_config | (~TestConfig): test configuration |