set_params_from_vector#

Cauchy.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 vector must correspond to the order of names in param_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_names does not match the length of vector.