Skip to content

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])

Calls to ComparisonReport or compare with a literal list or dict containing fewer than two reports.

Pass at least two EstimatorReport or CrossValidationReport instances, or inspect a single report directly without wrapping it in ComparisonReport.

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.