Box
lerax.space.Box
Bases:
A space of continuous values.
Values in the Box space can be unbounded (i.e., infinite) on either the lower or upper end. Sampling from an unbounded dimension uses a normal distribution. Sampling from a dimension that is only bounded on one end uses an exponential distribution shifted to the bound. Sampling a bounded dimension uses a uniform distribution.
Attributes:
| Name | Type | Description |
|---|---|---|
|
|
The lower bounds of the space. |
|
|
The upper bounds of the space. |
|
|
The shape of the space. |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
low
|
|
The lower bounds of the space. |
required |
high
|
|
The upper bounds of the space. |
required |
shape
|
|
The shape of the space. If None, the shape is inferred from low and high. |
None
|