cleverly.AssessmentCapability#
- class cleverly.AssessmentCapability(operation: str, result_family: str, methods: tuple[str, ...], available: bool, status: AssessmentStatus, required_artifacts: tuple[str, ...], execution: Literal['summarize', 'retarget', 'refit'], deterministic_from_saved: bool, interpretation: str, cost: Literal['cheap', 'moderate', 'expensive'], refusal: Refusal | None = None, requires_arguments: tuple[str, ...] = (), accepts_random_state: bool = False, requires_replay: str | None = None)[source]#
Describe whether and how a result supports one assessment operation.
- Parameters:
- operation
str Public operation name on a diagnostics or sensitivity facade.
- result_family
str Result family for which the declaration applies.
- methods
tupleofstr Estimation methods covered by the declaration.
- availablebool
Whether the operation can run on the result family.
- status
AssessmentStatus Status to report when the operation cannot run.
DEFERREDmeans that the caller lifts the refusal by passing every name inrequires_arguments.- required_artifacts
tupleofstr Fitted artifacts that the operation reads.
- execution{“summarize”, “retarget”, “refit”}
Most expensive work the operation performs.
- deterministic_from_savedbool
Whether saved artifacts determine the result without a refit.
- interpretation
str Statistical question that the operation answers.
- cost{“cheap”, “moderate”, “expensive”}
Relative cost category used by combined reports.
- refusal
RefusalorNone The record of why the operation is not available: its reason code, the failed condition and the alternative.
reasonis its text, and a raise of the operation carries the same record.- requires_arguments
tupleofstr Arguments the caller must pass. An entry either has no default, or has a default that the operation refuses on this result family.
- accepts_random_statebool
Whether a combined run can forward its top-level seed.
- requires_replay
strorNone Name of the
Replayabilityfield the operation needs.Nonemeans the operation reads stored artifacts only.
- operation
Methods#
Attributes#
- AssessmentCapability.requires_arguments: tuple[str, ...] = ()#
Arguments the caller must supply, so a combined report cannot run this operation. An entry covers two cases: the operation has no default for it, or the operation refuses its own default on this fit.
simulated_confoundingis the second case, because a continuous fit refuses the bareestimand="ate"default. Declared here rather than special-cased by name inrun_all, which knows nothing about any particular operation.
- AssessmentCapability.requires_replay: str | None = None#
The
Replayabilityfield this operation needs from the stored result. One declaration per row, applied once in_CapabilityFacade._capability_map(), because two facades each patching their own rows leftrefuteclaimingavailable=Trueon a result with no estimator whiletruncation_curve,benchmarkandsimulated_confoundingbeside it reported the truth.
- AssessmentCapability.status: AssessmentStatus#