LegOutcome#
- class scikitplot.corpus.LegOutcome(leg, status, hit_count=0, generation=None, backend=None, error=None)[source]#
How one evidence path fared.
- Parameters:
- legLegKind
Which evidence path this describes.
- statusLegStatus
Outcome for this leg.
- hit_countint, optional
Hits contributed before fusion.
- generationint or None, optional
Index generation the leg ran against, for provenance.
- backendstr or None, optional
Backend that served the leg, when applicable.
- errorErrorRecord or None, optional
Required when
statusisDEGRADEDorFAILED.
- Raises:
- ValueError
If
statusisDEGRADEDorFAILEDanderrorisNone.
- Parameters:
Notes
Developer. The
error-required invariant is enforced in__post_init__rather than documented, because an unexplained degradation is exactly as unhelpful as no degradation signal at all.- error: ErrorRecord | None = None#