CrossValidationReport.cache_predictions#
- CrossValidationReport.cache_predictions()[source]
Cache the predictions for sub-estimators reports.
Examples
>>> from sklearn.datasets import load_breast_cancer >>> from sklearn.linear_model import LogisticRegression >>> from skore import CrossValidationReport >>> X, y = load_breast_cancer(return_X_y=True) >>> classifier = LogisticRegression(max_iter=10_000) >>> report = CrossValidationReport(classifier, X=X, y=y, splitter=2) >>> report.cache_predictions() >>> report.estimator_reports_[0]._cache {...}