parametrization.to_normalized

parametrization.to_normalized(free_params, metadata, scales)

to_unconstrained followed by normalize.

Convenience wrapper for entering optimizer space from raw param values.

Parameters

Name Type Description Default
free_params dict[str, Array] of raw (constrained) parameter values. required
metadata dict[str, Parameter] from :func:extract_parameters. required
scales dict[str, Array] from :func:compute_param_scales. required

Returns

Name Type Description
dict[str, Array] ready to pass to the optimizer.