set_params_from_vector#
- Normal.set_params_from_vector(param_names, vector)#
Sets parameter values from a sequence of floats.
Updates the distribution’s parameters using values from the provided sequence. The order of values in the
vectormust correspond to the order of names inparam_names.- Parameters:
param_names (Sequence[str]) – A sequence of parameter names to update.
vector (Sequence[float]) – A sequence of new values for the parameters.
- Raises:
ValueError – If any parameter names do not exist, or if the length of
param_namesdoes not match the length ofvector.