Simple results
Summary
Results of tuning using a simple trainer.
TuningResults has many Training objects,
each representing training for a one letstune.Params object.
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].checkpoint
model = chk.load_pickle()
Tuning results class
- class letstune.results.simple.TuningResults
Results of simple training.
List of
Trainingobjects, each representing oneletstune.Params.Bases:
typing.Generic[P],collections.abc.Sequence[letstune.results.simple.Training[P]]- __getitem__(i: int) letstune.results.simple.Training[P]
Get i-th best training.
tuning[0]gives the best training.
- __getitem__(slice: slice) list[letstune.results.simple.Training[P]]
Get slice of top trainings.
tuning[:5]gives 5 best trainings.
- property errors: collections.abc.Sequence[letstune.results.simple.Error]
Sequence of failed trainings.
Other classes
- class letstune.results.simple.Training
Training of a model for given
letstune.Params.Bases:
typing.Generic[P]Basic data
- params: P
Metric values
Time
- start_time: datetime
- end_time: datetime
- property duration: timedelta
Time elapsed from
start_timetoend_time.
Checkpoint