Expand description
Out-of-sample data splits with purging and embargo to eliminate lookahead bias and label overlap.
Structs§
- Purged
Split Config - Configuration for a train/test chronological split with embargo.
- Purged
Train Test Split - The result of a purged train/test split.
- Trade
Span - Representation of a trade’s temporal lifespan for purging calculations.
Enums§
- Split
Error - Error during split configuration or purging.
Functions§
- split_
trades_ purged - Partitions trades into train and test sets, purging any training trade whose exit bar reaches into or beyond the test set start.