cleverly.validation.PlannedRefitTest#
- class cleverly.validation.PlannedRefitTest(name: str, draws: int, refits_per_draw: int, refits: int, unit: PlannedFits | None, learner_fits: int, candidate_fits: int, min_fits: int, preparation: int = 0, stored: int = 0, bound: Literal['exact', 'upper'] = 'exact', notes: tuple[str, ...] = ())[source]#
The refits one test of a
refute()call would make.- Parameters:
- name
str The test, as
tests=names it.- draws
int The draws the test makes: the resolved replicate count, or 1 for a one-off fit.
- refits_per_draw
int 2 for
random_common_causewithseed_spread=True, else 1.- refits
int The refits the test runs. 0 where it runs none, such as a longitudinal placebo for a regimen its kernel never draws.
- unit
PlannedFitsorNone The preview of one refit;
Nonewhere no refit runs.- learner_fits
int Top-level learner fits over every refit, plus
preparation. For an upper test, the most the test can make.- candidate_fits
int Fits of base estimators inside those fits, plus
preparation.- min_fits
int The fewest top-level fits the test makes when no draw fails.
- preparation
int Fits made once before the draws, such as the frozen models of a plasmode law.
- stored
int Draws a
checkpoint=directory already holds. A resume loads them, sorefitsand the fit counts cover only the otherdraws - stored.- bound{“exact”, “upper”}
"exact"when the counts are the ones the test makes, assuming no fit raises.- notes
tupleofstr What the counts of this test assume.
- name
Methods#
Attributes#
- PlannedRefitTest.unit: PlannedFits | None#