Skip to main content

Module evaluate

Module evaluate 

Source
Expand description

Evaluation-loop utilities that compose a splitter, a model-fitting closure, and one or more scorers.

Structs§

CvResults
Results of a cross_validate run.
LearningCurve
Output of learning_curve.
NestedCvResults
Output of nested_cross_validate.
ValidationCurve
Output of validation_curve.

Enums§

TrainSize
A training-set size, given either absolutely or as a fraction of the largest usable training set.

Functions§

cross_validate
Cross-validate a model-fitting closure with one or more scorers.
learning_curve
Compute a learning curve: for each training size and each fold, fit on a prefix of the fold’s training set and score on both that prefix and the held-out validation set.
nested_cross_validate
Run nested cross-validation.
validation_curve
Compute a validation curve: for each hyperparameter value and each fold, fit with that value and score on train and validation.

Type Aliases§

BoxedScorer
A scorer usable by the evaluation utilities.