ledgr_param_grid() creates a validated parameter-grid object for sweep
candidate identity. The grid stores parameter combinations and labels;
it does not execute candidates by itself.
Details
Each argument must be a JSON-safe list of strategy parameters. Named
arguments preserve their names as grid labels. Unnamed arguments receive a
stable grid_<hash> label derived from ledgr's canonical JSON encoding of
the parameter list. Grid labels are labels only; they are not run IDs.
ledgr_param_grid() is the compatibility helper for manually named
strategy-parameter lists and old flat-grid workflows. It can still support
legacy feature-factory experiments where indicator parameters live in the same
list as strategy parameters. Do not use that shape for new parameterized
feature sweeps. Use ledgr_feature_grid(), ledgr_strategy_grid(), and
ledgr_grid_cross() so feature-materialization parameters and
strategy-runtime parameters stay in separate namespaces.
Articles
Exploratory sweeps and promotion:
vignette("sweeps", package = "ledgr")
system.file("doc", "sweeps.html", package = "ledgr")
Examples
grid <- ledgr_param_grid(
conservative = list(threshold = 0.01, qty = 1),
list(threshold = 0.02, qty = 2)
)
grid$labels
#> [1] "conservative" "grid_6d8c0457d93f"
grid$params
#> [[1]]
#> [[1]]$threshold
#> [1] 0.01
#>
#> [[1]]$qty
#> [1] 1
#>
#>
#> [[2]]
#> [[2]]$threshold
#> [1] 0.02
#>
#> [[2]]$qty
#> [1] 2
#>
#>