Create feature, strategy, and executable sweep grids
ledgr_feature_grid.RdThese helpers keep feature-materialization parameters and strategy-runtime parameters in separate namespaces before composing executable sweep candidates. They are the canonical v0.1.8.5 authoring path for sweeps that vary ledgr-owned indicator parameters behind active aliases.
Usage
ledgr_feature_grid(..., .filter = NULL)
ledgr_strategy_grid(..., .filter = NULL)
ledgr_grid_cross(features, strategy)
ledgr_grid_named(...)
ledgr_grid_add_baseline(grid, ...)Arguments
- ...
Named grid columns for
ledgr_feature_grid()andledgr_strategy_grid(), or named executable candidate specs forledgr_grid_named()/ledgr_grid_add_baseline().- .filter
Optional narrow filter expression evaluated against generated grid columns.
- features
A
ledgr_feature_gridobject. Omitted to use one empty feature-parameter row.- strategy
A
ledgr_strategy_gridorledgr_param_gridobject. Omitted to use one empty strategy-parameter row.- grid
A
ledgr_executable_gridobject.
Examples
fg <- ledgr_feature_grid(fast_n = c(10L, 20L), slow_n = 40L, .filter = fast_n < slow_n)
sg <- ledgr_strategy_grid(qty = c(50L, 100L))
ledgr_grid_cross(features = fg, strategy = sg)
#> ledgr_param_grid
#> ================
#> Combinations: 4
#> Labels: feature_fa560ccbec9f/strategy_a5bda8b0d38f, feature_fa560ccbec9f/strategy_b8db30e35cac, feature_9f9d160d8a33/strategy_a5bda8b0d38f, feature_9f9d160d8a33/strategy_b8db30e35cac
#>
#> Grid labels identify sweep candidates; they are not committed run IDs.