yamle.trainers.calibration module#
- class yamle.trainers.calibration.CalibrationTrainer(calibration_epochs, *args, **kwargs)[source]#
Bases:
BaseTrainerThis class defines a temperature trainer which first trains the model and then calibrates it.
The training is on the training set and the calibration is on the calibration set.
- Parameters:
calibration_epochs¶ (int) – The number of epochs to calibrate the model.