parametrization.from_normalized

parametrization.from_normalized(normalized, metadata, scales)

unnormalize followed by to_constrained.

Convenience wrapper for recovering constrained param values from optimizer space, e.g. inside a loss function.

Parameters

Name Type Description Default
normalized dict[str, Array] in normalized O(1) optimizer space. 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] of constrained parameter values, suitable for
passing directly to the render function.