Tuple
lerax.space.Tuple
Bases:
A cartesian product of spaces.
Attributes:
| Name | Type | Description |
|---|---|---|
|
|
A tuple of the component spaces. |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
spaces
|
|
A tuple of the component spaces. |
required |
sample
Returns a random sample from the space.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
|
A JAX PRNGKey. |
required |
Returns:
| Type | Description |
|---|---|
|
A tuple containing a random sample from each component space. |
contains
Returns whether the given value is contained in the space.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
|
The value to check. |
required |
Returns:
| Type | Description |
|---|---|
|
Whether the value is contained in the space. |