concepts.dsl.tensor_state.StateObjectDistribution#
- class StateObjectDistribution[source]#
Bases:
StateObjectList
Methods
clone
([dtype])Attributes
The type of the value.
The values.
A distribution of the objects.
- __init__(dtype, values, distribution)[source]#
Initialize the Value object.
- Parameters:
dtype (ListType) – the type of the value.
values (Sequence[StateObjectReference] | slice) – the values.
distribution (Any)
- __len__()#
- __new__(**kwargs)#
- distribution: Any#
A distribution of the objects. Since it’s a distribution over a list, the distribution is a list of probabilities, which can be represented as a numpy array, a list, etc.
- property element_type: ObjectType#
- values: Tuple[StateObjectReference, ...] | slice#
The values.