BacktestEventBatch#
- class openstef_beam.backtesting.backtest_event.BacktestEventBatch(**data: Any) None[source]
Bases:
BaseModelRepresents a batch of backtest events that can be processed together.
Encapsulates the logic for determining if events can be batched and provides a clean interface for processing different types of event groups.
- Parameters:
data (
Any)
-
events:
list[BacktestEvent]
- property batch_type: Literal['train', 'predict_batch', 'predict_single']
Determine the type of batch for processing logic.
- property is_training: bool
Check if this batch contains a training event.
- property is_prediction: bool
Check if this batch contains prediction events.
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'protected_namespaces': (), 'ser_json_inf_nan': 'null'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].