skore/confusion-matrix-data-source-both
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| skore | error | none, edit by hand | All versions |
Unlike metrics.summarize(data_source="both"), report.metrics.confusion_matrix(data_source="both") raises ValueError("data_source='both' is not supported for confusion_matrix.").
cm = report.metrics.confusion_matrix(data_source="both")cm = report.metrics.confusion_matrix(data_source="test")What the rule reports
Section titled “What the rule reports”Calls to .confusion_matrix(...) passing data_source="both".
How to fix it
Section titled “How to fix it”Pass data_source="test" (the default) or data_source="train".
Diagnostic message
Section titled “Diagnostic message”data_source='both' is not supported for skore confusion_matrix() and raises ValueError. Pass data_source='test' or data_source='train'.See all rules in the skore pack.