cleverly.interventions.SupportReport#
- class cleverly.interventions.SupportReport(regimes: dict[str, ~cleverly.interventions.support.RegimeSupport] = <factory>, n: int = 0, backend: str | None = None)[source]#
RegimeSupportfor every regime in a fit, plus the worst case.The columns read two mechanisms. The smallest propensity, the largest ratio and the ratio effective sample size read the treatment mechanism before truncation, which is what the data support. The score load reads the fitted clever covariate of the targeting step, which divides by the truncated mechanism.
summary()prints both facts under the table.- Parameters:
- regimes
dictofstrtoRegimeSupport One record per regime, keyed by its report label.
- n
int Number of observations the records were computed over.
- backend
strorNone Dataframe backend
to_frame()returns whendatais omitted.
- regimes
Methods#
Attributes#
- SupportReport.backend: str | None = None#
Name of the dataframe backend the fit’s data arrived in, so that
to_frame()honours “results come back in the backend you passed in” without a caller having to thread the container back in by hand.
- SupportReport.worst#
The regime with the smallest assigned-arm propensity.
- SupportReport.regimes: dict[str, RegimeSupport]#