Epoch results
Summary
Results of tuning using an epoch trainer.
TuningResults has many Training objects,
each representing training for a one letstune.Params object.
Each Training has many Epoch objects,
each representing training for a one epoch.
Metric value
In context of TuningResults and Training objects,
metric value means metric value from the best epoch (not last!).
Reporting
TuningResults provides useful reporting utilities,
like dataframe export.
The dataframe can be used for further analysis and visualization.
Model loading
To unpickle the best model:
chk = tuning[0].best_epoch.checkpoint
model = chk.load_pickle()
Tuning results class
- class letstune.results.epoch.TuningResults
Results of epoch training.
List of
Trainingobjects, each representing oneletstune.Params.Bases:
typing.Generic[P],collections.abc.Sequence[letstune.results.epoch.Training[P]]- __getitem__(i: int) letstune.results.epoch.Training[P]
Get i-th best training.
tuning[0]gives the best training.
- __getitem__(slice: slice) list[letstune.results.epoch.Training[P]]
Get slice of top trainings.
tuning[:5]gives 5 best trainings.
- property errors: collections.abc.Sequence[letstune.results.epoch.Error]
Sequence of failed trainings.
Other classes
- class letstune.results.epoch.Training
Training of a model for given
letstune.Params.List of
Epochobjects, each representing one epoch.Bases:
typing.Generic[P],collections.abc.Sequence[letstune.results.epoch.Epoch]Basic data
- params: P
- round: int
Round survived by the training. Calculated using
metric_value.
Epochs
- best_epoch: Epoch
The best epoch in the training.
Can be different than
last_epochdue to overfit.
- __getitem__(i: int) letstune.results.epoch.Epoch
Get i-th epoch.
Summarized metric values
Summarized time properties