Walk-forward sweep of tabular configs (window-wise distribution of metrics)
wf_sweep_tabular(
features_list,
labels,
prices,
fit_fn,
predict_fn,
schedule = list(is = 104L, oos = 4L, step = 4L),
grid = list(top_k = c(10L, 15L), temperature = c(8, 12), method = c("softmax", "rank"),
transform = c("zscore")),
caps = list(max_per_symbol = 0.08, max_per_group = NULL),
group_map = NULL,
freq = 52,
cost_bps = 0,
max_windows = NULL,
ic_method = "spearman"
)data.table with medians/means across OOS windows.
List of feature panels.
Label panel.
Price panel for backtests.
Model fit and predict functions.
List with elements is, oos, step.
Named list of parameter vectors to sweep (e.g., top_k, temperature, method, transform).
Exposure caps (e.g., max_per_symbol/max_per_group).
Optional Symbol->Group mapping for group caps/selection.
Compounding frequency for annualization (e.g., 52 for weekly).
One-way trading cost in basis points (applied on rebalance).
optional limit for speed.
IC method ('spearman' or 'pearson').