Skip to main content

Module rl

Module rl 

Source
Expand description

Module for reinforcement learning.

Modules§

environment
Module for implementing an environment.
policy
Module for implementing a policy.
transition_buffer
Transition buffer.

Structs§

ActionContext
An action along with additional context about the decision.
AsyncPolicy
An asynchronous policy using an inference server with autobatching.
RLTrainOutput
A training output.
StepResult
The result of taking a step in an environment.
Transition
A state transition in an environment.
TransitionBatch
A batch of transitions.
TransitionBuffer
A tensor-backed circular buffer for transitions.

Traits§

Batchable
Trait for a type that can be batched and unbatched (split).
Environment
Trait to be implemented for a RL environment.
EnvironmentInit
Trait to define how to initialize an environment. By default, any function returning an environment implements it.
Policy
Trait for a RL policy.
PolicyLearner
Learner for a policy.
PolicyState
The state of a policy.
SliceAccess
Trait for types that support tensor-like slice operations, enabling storage in a TransitionBuffer.
ToAction
Defines how an environment’s action is converted to a policy’s action.
ToObservation
Defines how an environment’s state is converted to a policy’s observation.

Type Aliases§

LearnerTransitionBatch
Batched transitions for a PolicyLearner.