Check#
- class skore.Check(*args, **kwargs)[source]#
Protocol for defining checks.
Each check wraps a callable that inspects a report. If the callable returns a non-empty string, that text is recorded as a finding under
codewith the giventitleandseverity. Checks are scoped to a single report type viareport_typeso they only run on matching reports.- Attributes:
- codestr
Unique identifier for this check, used in
summarize()andignorelists.- titlestr
Short label shown for the finding when one is reported.
- docs_urlstr or None, default=None
Optional link or documentation anchor: a string starting with
"http"is shown as-is; otherwise it is treated as an HTML anchor fragment under the automated checks user guide.- report_typestr
Must be one of
"cross-validation","estimator","comparison-estimator", or"comparison-cross-validation".- severity{“issue”, “tip”}
Severity of the finding.
"issue"flags a modeling problem to fix;"tip"invites caution (e.g. on the interpretation of a result) without signaling a defect.- slowbool, default=False
Whether the check is expensive to run (e.g. requires refits or permutation predictions). Slow checks are skipped when
summarize()is called withfast_mode=True, and are not computed by the HTML report repr (only cached results are surfaced).