pub fn model_from_str_with_dims(
model_type: &str,
n_dims: Option<usize>,
) -> Option<Box<dyn Model>>Expand description
Dimension-aware model construction.
Identical to model_from_str for every fixed-dimensionality kernel, but
for the parametric "gaussian_nd" it builds a gaussian_nd::GaussianND of
the dimensionality n_dims (the node’s explicit field, passed by the
compiler). Returns None for an unknown type, OR for "gaussian_nd" with
n_dims == None (the caller must surface a clear “dimension required” error).