Expand description

Spaces: runtime-defined types

In addition to the spaces defined here, a product space can be derived on structures containing inner spaces with #[derive(ProductSpace)].

Structs

A Cartesian product of N spaces of the same type (but not necessarily the same space).

The space {false, true}.

An index space; consists of the integers 0 to size - 1

A space defined over an indexed type.

A closed interval on bounded, partially ordered types.

A space of n-dimensional Arrays of elements from a single space.

Wrapper space with a feature vector length of at least 1.

A space whose elements are either None or Some(inner_elem).

A Cartesian power of a space: a Cartesian product of N copies of the same space.

A space containing a single element.

Cartesian product of two spaces; elements are tuples

Cartesian product of three spaces; elements are tuples

Cartesian product of four spaces; elements are tuples

Cartesian product of five spaces; elements are tuples

Traits

A space whose elements can be encoded as floating-point feature vectors.

A space containing finitely many elements.

An indexed set of finitely many possibilities.

A space whose elements can be logged to a StatsLogger

A space containing at least one element.

A space whose elements parameterize a distribution

A space whose elements can be represented as value of type T

A space from which samples can be drawn.

A space: a set of values with some added structure.

Compare this space to another in terms of the subset relation.

Functions

Helper function to determine the subset ordering of a product space with any number of factors.

Helper function to determine the subset ordering of a product of two spaces.

Type Definitions

One-dimensional NdArraySpace

Two-dimensional NdArraySpace

Three-dimensional NdArraySpace

A wrapper space that boxes the elements of an inner space.

Derive Macros

Derive relearn::spaces::FiniteSpace for a struct as a Cartesian product space of its fields.

Derive relearn::spaces::Indexed for an enum without internal data.

Derive relearn::spaces::LogElementSpace for a struct.

Derive Space and other space traits for a struct as a Cartesian product space of its fields.

Derive relearn::spaces::SampleSpace for a struct as a Cartesian product space of its fields.

Derive relearn::spaces::Space for a struct as a Cartesian product space of its fields.

Derive relearn::spaces::SubsetOrd for a struct as a Cartesian product space of its fields.