cross_validate

cross_validate performs a cross-validation and returns, for each fold, the scores of several metrics, along with fit times and optionally the training scores. More complete than cross_val_score, it is used to compare models on several criteria.

Example

cross_validate(modele, X, y, cv=5, scoring=['f1', 'roc_auc'])

Related concepts

The whole glossary