pub struct BooleanSpace;
Expand description

The space {false, true}.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Generate a random value of T, using rng as the source of randomness.

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more

Features are [0.0] for false and [1.0] for true

Length of the encoded feature vectors.

Encode the feature vector of an element into a mutable slice. Read more

Encode the feature vector of an element into an array.

Encode the feature vectors of multiple elements into rows of a two-dimensional array. Read more

Encode the feature vectors of multiple elements as rows of a two-dimensional array.

The number of elements in the space.

Get the (unique) index of an element.

Try to convert an index to an element. Read more

Try to convert an index to an element. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Log an element of the space

An arbitrary deterministic element from the space.

Batched distribution type. Read more

Size of the parameter vector for which elements are sampled.

Sample a single element given a parameter vector. Read more

The distribution parameterized by the given parameter vector. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Represent elements as a Boolean valued tensor.

Representation of a single element.

Represent a batch of elements as an array.

Serialize this value into the given Serde serializer. Read more

Check whether a particular value is contained in the space.

Compare using the subset relationship. This is a partial order.

Check if this is a strict subset of other.

Check if this is a subset (strict or equal) of other.

Check if this is a strict superset of other.

Check if this is a superset (strict or equal) of other.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Convert into an Any trait reference.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.