pypomp.core.par_trans.ParTrans.transform_array¶
- ParTrans.transform_array(param_array: ndarray, param_names: list[str], direction: Literal['to_est', 'from_est']) ndarray[source]¶
Transform a parameter array to or from the (unconstrained) estimation parameter space.
This wrapper converts an array of parameters to a dict, applies the dict-to-dict transformation function, and converts back to an array.
- Parameters:
param_array – Array of parameter values with shape (…, n_params)
param_names – List of parameter names in the same order as the array
direction – Direction of transformation (“to_est” or “from_est”)
- Returns:
Transformed parameter array with the same shape as input