Evaluate hyperparameter stability grid for door pooling
tma_stability_grid.RdComputes pairwise trajectory distance matrices across a grid of lookback sizes or alpha values, then computes the matrix correlation between adjacent parameter settings to find the "elbow" where trajectories stabilize.
Usage
tma_stability_grid(
accum,
unit_col,
time_col,
param_type = c("lookback", "ema"),
param_values = NULL,
x_col = NULL,
y_col = NULL,
max_degree = 3L
)Arguments
- accum
Object from
tma::accumulate().- unit_col
Name of column identifying unit/speaker.
- time_col
Name of column identifying monotonic time.
- param_type
"lookback" or "ema".
- param_values
Numeric vector of parameter values to evaluate.
- x_col
Column name for x coordinate (default auto).
- y_col
Column name for y coordinate (default auto).
- max_degree
Polynomial degree for trajectory curves (default 3).