pflab_walk_forward | Walk-forward backtest of a whole pipeline (pre-selection steps, any optimizer, prior and constraints): refit on each training window, hold until the next rebalance (every test_size periods or on a calendar such as month starts), with purging, expanding windows, and costs and turnover limits applied from one rebalance to the next. | |
pflab_compare_strategies | Runs several strategies (pipelines with any optimizer, prior, constraints and pre-selection) through the same walk-forward periods and ranks them by an out-of-sample measure. | |
pflab_combinatorial_cv | Combinatorial purged cross-validation of a pipeline: the history is cut into folds, every combination of test folds is predicted out of sample (with purging and embargo), and the predictions are recombined into many full backtest paths, giving a distribution of out-of-sample results instead of one walk-forward path (or multiple randomized CV on random asset subsets and windows). | |
pflab_cv_plan | Plans cross-validation without fitting anything: the number of folds and test folds that best match a target training size and number of backtest paths, the resulting combinatorial design (splits, paths, average training size, which folds are train or test in each split), and, when data is given, the walk-forward train/test windows with their dates (rebalance calendar). | |
pflab_grid_search | Cross-validated hyper-parameter search of a pipeline: every combination of the grid (or n_iter random ones) is scored by an out-of-sample portfolio measure on walk-forward or k-fold splits. | |
pflab_online_backtest | Online backtest: after a warmup the pipeline’s estimators are updated incrementally with each new period (no refitting from scratch) and the portfolio is rebalanced every test_size periods or on a calendar. | |