larch.ModelGroup.pvals#

property ModelGroup.pvals: ndarray[float64]#

An array of the current parameter values.

This property is a getter/setter for the current parameter values. The array is a copy of the current parameter values, and setting the array with a given array (which must be a vector with length equal to the number of parameters in the model) will update the parameter values in the model.

Values can also be set here using a dictionary of parameter names and values. A warning will be given if any key of the dictionary is not found among the existing named parameters in the parameter frame, and the value associated with that key is ignored. Any parameters not named by a key in this dictionary are not changed.

Setting this property also permits the use of shorthand (string) values, including “null”, “init”, and “best” to set the parameter values to the null, initial, or best values, respectively, as given in the parameter frame. If the parameter frame does not have these columns, a ValueError exception will be raised.