Experiment๏ƒ

Experiment: the one evaluation loop (backtraderโ€™s Cerebro).

Both trust levels share this orchestrator โ€” the Verifier is this plus submission policy. Two execution modes over identical settlement logic:

event

reset โ†’ per origin: observe โ†’ predict โ†’ step โ†’ settle โ†’ analyze. Always correct; required for online-learning models.

vectorized

For models with supports_batch (FeaturePredictor): the feature matrix for all origins is materialized in one shot, the model predicts once as a batch, and the precomputed actions are replayed through the same environment. Orders of magnitude fewer model calls; settlement, validation and rewards are byte-identical because the env does them in both modes.

mode="auto" picks vectorized when the model supports it.

class emflow.run.experiment.Experiment(problem, model, analyzers: str | Sequence[Analyzer] | None = 'default', split: str = 'validation')[source]๏ƒ

Bases: object

run(mode: str = 'auto') Result[source]๏ƒ