pub struct RLComponentsMarker<E, EI, A> { /* private fields */ }Available on crate feature
rl only.Expand description
Concrete type that implements the RLComponentsTypes trait.
Trait Implementations§
Source§impl<E, EI, A> RLComponentsTypes for RLComponentsMarker<E, EI, A>where
E: Environment + 'static,
EI: EnvironmentInit<E> + Send + 'static,
A: PolicyLearner + Send + 'static,
<A as PolicyLearner>::Record: Checkpoint,
A::TrainContext: ItemLazy + Clone + Send,
A::InnerPolicy: Policy + Send,
<A::InnerPolicy as Policy>::Observation: Batchable + Clone + Send,
<A::InnerPolicy as Policy>::ActionDistribution: Batchable + Clone + Send,
<A::InnerPolicy as Policy>::Action: Batchable + Clone + Send,
<A::InnerPolicy as Policy>::ActionContext: ItemLazy + Clone + Send + 'static,
<A::InnerPolicy as Policy>::PolicyState: Clone + Send,
<<A::InnerPolicy as Policy>::PolicyState as PolicyState>::Record: Checkpoint,
E::State: ToObservation<<A::InnerPolicy as Policy>::Observation> + Clone + Send + 'static,
E::Action: From<<A::InnerPolicy as Policy>::Action> + ToAction<<A::InnerPolicy as Policy>::Action> + Clone + Send + 'static,
impl<E, EI, A> RLComponentsTypes for RLComponentsMarker<E, EI, A>where
E: Environment + 'static,
EI: EnvironmentInit<E> + Send + 'static,
A: PolicyLearner + Send + 'static,
<A as PolicyLearner>::Record: Checkpoint,
A::TrainContext: ItemLazy + Clone + Send,
A::InnerPolicy: Policy + Send,
<A::InnerPolicy as Policy>::Observation: Batchable + Clone + Send,
<A::InnerPolicy as Policy>::ActionDistribution: Batchable + Clone + Send,
<A::InnerPolicy as Policy>::Action: Batchable + Clone + Send,
<A::InnerPolicy as Policy>::ActionContext: ItemLazy + Clone + Send + 'static,
<A::InnerPolicy as Policy>::PolicyState: Clone + Send,
<<A::InnerPolicy as Policy>::PolicyState as PolicyState>::Record: Checkpoint,
E::State: ToObservation<<A::InnerPolicy as Policy>::Observation> + Clone + Send + 'static,
E::Action: From<<A::InnerPolicy as Policy>::Action> + ToAction<<A::InnerPolicy as Policy>::Action> + Clone + Send + 'static,
Source§type LearningAgent = A
type LearningAgent = A
The learning agent.
Source§type Policy = <A as PolicyLearner>::InnerPolicy
type Policy = <A as PolicyLearner>::InnerPolicy
The policy used to take actions in the environment.
Source§type PolicyObs = <<A as PolicyLearner>::InnerPolicy as Policy>::Observation
type PolicyObs = <<A as PolicyLearner>::InnerPolicy as Policy>::Observation
The policy’s observation type.
Source§type PolicyAD = <<A as PolicyLearner>::InnerPolicy as Policy>::ActionDistribution
type PolicyAD = <<A as PolicyLearner>::InnerPolicy as Policy>::ActionDistribution
The policy’s action distribution type.
Source§type PolicyAction = <<A as PolicyLearner>::InnerPolicy as Policy>::Action
type PolicyAction = <<A as PolicyLearner>::InnerPolicy as Policy>::Action
The policy’s action type.
Source§type ActionContext = <<A as PolicyLearner>::InnerPolicy as Policy>::ActionContext
type ActionContext = <<A as PolicyLearner>::InnerPolicy as Policy>::ActionContext
Additional data as context for an agent’s action.
Source§type PolicyState = <<A as PolicyLearner>::InnerPolicy as Policy>::PolicyState
type PolicyState = <<A as PolicyLearner>::InnerPolicy as Policy>::PolicyState
The state of the parameterized policy.
Source§type TrainingOutput = <A as PolicyLearner>::TrainContext
type TrainingOutput = <A as PolicyLearner>::TrainContext
The output data of a training step.
Source§type State = <E as Environment>::State
type State = <E as Environment>::State
The type of the environment state.
Source§type Action = <E as Environment>::Action
type Action = <E as Environment>::Action
The type of the environment action.
Auto Trait Implementations§
impl<E, EI, A> Freeze for RLComponentsMarker<E, EI, A>
impl<E, EI, A> RefUnwindSafe for RLComponentsMarker<E, EI, A>
impl<E, EI, A> Send for RLComponentsMarker<E, EI, A>
impl<E, EI, A> Sync for RLComponentsMarker<E, EI, A>
impl<E, EI, A> Unpin for RLComponentsMarker<E, EI, A>
impl<E, EI, A> UnsafeUnpin for RLComponentsMarker<E, EI, A>
impl<E, EI, A> UnwindSafe for RLComponentsMarker<E, EI, A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more