to_constrained
to_constrained(unconstrained, metadata)
Map unconstrained params back to constrained space.
Inverse of :func:to_unconstrained.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| unconstrained | dict[str, Array] in unconstrained space. |
required | |
| metadata | dict[str, Parameter] as returned by :func:extract_parameters. |
required |
Returns
| Name | Type | Description |
|---|---|---|
dict[str, Array] with values clamped/mapped to their declared bounds. |