LegContribution#

class scikitplot.corpus.LegContribution(leg, rank, native_score=None, native_metric=None)[source]#

One leg’s contribution to a fused hit.

Parameters:
legLegKind

Which evidence path contributed.

rankint

Zero-based position within that leg.

native_scorefloat or None

The score that leg assigned, on its own scale.

native_metricstr or None

The scale, so a consumer can verify no cross-metric comparison happened.

Parameters:

Notes

Developer. This is propagation, not new computation: the fusion loop already had all four values.

leg: LegKind[source]#
native_metric: str | None = None#
native_score: float | None = None#
rank: int[source]#
to_dict()[source]#

Return a JSON-compatible mapping.

Return type:

dict[str, Any]