ComparisonReport.cache_predictions#
- ComparisonReport.cache_predictions()[source]
Cache the predictions for sub-estimators reports.
Examples
>>> from sklearn.datasets import make_classification >>> from sklearn.linear_model import LogisticRegression >>> from skore import compare, evaluate >>> X, y = make_classification(random_state=42) >>> estimator_1 = LogisticRegression() >>> estimator_report_1 = evaluate(estimator_1, X, y, splitter=0.2) >>> estimator_2 = LogisticRegression(C=2) # Different regularization >>> estimator_report_2 = evaluate(estimator_2, X, y, splitter=0.2) >>> report = compare([estimator_report_1, estimator_report_2]) >>> report.cache_predictions()