skore/comparison-report-too-few
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| skore | error | none, edit by hand | All versions |
ComparisonReport and skore.compare require at least two reports and raise ValueError("Expected at least 2 reports to compare") when given an empty or single-element list or dict.
cmp = skore.compare([report_a])cmp = skore.compare([report_a, report_b])What the rule reports
Section titled “What the rule reports”Calls to ComparisonReport or compare with a literal list or dict containing fewer than two reports.
How to fix it
Section titled “How to fix it”Pass at least two EstimatorReport or CrossValidationReport instances, or inspect a single report directly without wrapping it in ComparisonReport.
Diagnostic message
Section titled “Diagnostic message”ComparisonReport and skore.compare require at least 2 reports and raise ValueError when given 0 or 1 report. Pass two or more reports to compare.See all rules in the skore pack.