quantlab.model.predefined.recorded.RecordedPredictorConfig#

class quantlab.model.predefined.recorded.RecordedPredictorConfig(predictor, run_dir='', history=False)[source]#

Bases: PredictorViewConfig

What a RecordedPredictor is rebuilt from.

Examples

>>> sorted(RecordedPredictorConfig(predictor=model, run_dir="runs/x").__dataclass_fields__)
['history', 'predictor', 'run_dir']
history = False#

Also serve the record’s bars before the loaded checkpoint’s window.

run_dir = ''#

The recorded backtest run (run or run_cv) whose predictions are served.