| ml_backtest_seq | R Documentation |
One-call backtest wrapper (sequence features)
ml_backtest_seq(
features_list,
labels,
steps = 26L,
horizon = 4L,
fit_fn,
predict_fn,
schedule = list(is = 156L, oos = 4L, step = 4L),
group = c("pooled", "per_symbol", "per_group"),
group_map = NULL,
normalize = c("none", "zscore", "minmax"),
selection = list(top_k = 15L, max_per_group = NULL),
weighting = list(method = "softmax", temperature = 12, floor = 0),
caps = list(max_per_symbol = 0.1, max_per_group = NULL),
prices,
initial_capital = 1e+05,
name = "SEQ backtest"
)
features_list |
list of panels to be stacked over |
labels |
future-return panel aligned to the features. |
steps |
int; lookback length (e.g., 26). |
horizon |
int; label horizon (e.g., 4). |
fit_fn |
function |
predict_fn |
function |
schedule |
list with elements |
group |
one of |
group_map |
optional |
normalize |
|
selection |
list: |
weighting |
list: |
caps |
list: |
prices |
price panel used by the backtester ( |
initial_capital |
starting capital. |
name |
string for the backtest result. |
list: scores, mask, weights, backtest.
# as above, but with steps/horizon and normalize
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.