TimeSliceCrossValidator.run#

TimeSliceCrossValidator.run(X, y, sampler_config=None, yaml_path=None, mmm=None)[source]#

Run the complete time-slice CV loop.

If yaml_path is provided, the validator will rebuild the MMM from the YAML for each fold using the training data before calling _fit_mmm.

sampler_config: Optional dict to override the validator-level sampler configuration

for all folds in this run. If provided here it takes precedence over the configuration passed at construction time.

Example:

# Use a lighter sampler for quick checks cv.run(X, y, sampler_config={

‘tune’: 300, ‘draws’: 300, ‘chains’: 2,

})

Returns:
List[TimeSliceCrossValidationResult]