pub struct RLComponentsMarker<B, E, EI, A> { /* private fields */ }Available on crate feature
rl only.Expand description
Concrete type that implements the RLComponentsTypes trait.
Trait Implementations§
Source§impl<B, E, EI, A> RLComponentsTypes for RLComponentsMarker<B, E, EI, A>where
B: AutodiffBackend,
E: Environment + 'static,
EI: EnvironmentInit<E> + Send + 'static,
A: PolicyLearner<B> + Send + 'static,
A::TrainContext: ItemLazy + Clone + Send,
A::InnerPolicy: Policy<B> + Send,
<A::InnerPolicy as Policy<B>>::Observation: Batchable + Clone + Send,
<A::InnerPolicy as Policy<B>>::ActionDistribution: Batchable + Clone + Send,
<A::InnerPolicy as Policy<B>>::Action: Batchable + Clone + Send,
<A::InnerPolicy as Policy<B>>::ActionContext: ItemLazy + Clone + Send + 'static,
<A::InnerPolicy as Policy<B>>::PolicyState: Clone + Send,
E::State: Into<<A::InnerPolicy as Policy<B>>::Observation> + Clone + Send + 'static,
E::Action: From<<A::InnerPolicy as Policy<B>>::Action> + Into<<A::InnerPolicy as Policy<B>>::Action> + Clone + Send + 'static,
impl<B, E, EI, A> RLComponentsTypes for RLComponentsMarker<B, E, EI, A>where
B: AutodiffBackend,
E: Environment + 'static,
EI: EnvironmentInit<E> + Send + 'static,
A: PolicyLearner<B> + Send + 'static,
A::TrainContext: ItemLazy + Clone + Send,
A::InnerPolicy: Policy<B> + Send,
<A::InnerPolicy as Policy<B>>::Observation: Batchable + Clone + Send,
<A::InnerPolicy as Policy<B>>::ActionDistribution: Batchable + Clone + Send,
<A::InnerPolicy as Policy<B>>::Action: Batchable + Clone + Send,
<A::InnerPolicy as Policy<B>>::ActionContext: ItemLazy + Clone + Send + 'static,
<A::InnerPolicy as Policy<B>>::PolicyState: Clone + Send,
E::State: Into<<A::InnerPolicy as Policy<B>>::Observation> + Clone + Send + 'static,
E::Action: From<<A::InnerPolicy as Policy<B>>::Action> + Into<<A::InnerPolicy as Policy<B>>::Action> + Clone + Send + 'static,
Source§type LearningAgent = A
type LearningAgent = A
The learning agent.
Source§type Policy = <A as PolicyLearner<B>>::InnerPolicy
type Policy = <A as PolicyLearner<B>>::InnerPolicy
The policy used to take actions in the environment.
Source§type PolicyObs = <<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::Observation
type PolicyObs = <<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::Observation
The policy’s observation type.
Source§type PolicyAD = <<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::ActionDistribution
type PolicyAD = <<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::ActionDistribution
The policy’s action distribution type.
Source§type PolicyAction = <<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::Action
type PolicyAction = <<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::Action
The policy’s action type.
Source§type ActionContext = <<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::ActionContext
type ActionContext = <<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::ActionContext
Additional data as context for an agent’s action.
Source§type PolicyState = <<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::PolicyState
type PolicyState = <<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::PolicyState
The state of the parameterized policy.
Source§type TrainingOutput = <A as PolicyLearner<B>>::TrainContext
type TrainingOutput = <A as PolicyLearner<B>>::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<B, E, EI, A> Freeze for RLComponentsMarker<B, E, EI, A>
impl<B, E, EI, A> RefUnwindSafe for RLComponentsMarker<B, E, EI, A>
impl<B, E, EI, A> Send for RLComponentsMarker<B, E, EI, A>
impl<B, E, EI, A> Sync for RLComponentsMarker<B, E, EI, A>
impl<B, E, EI, A> Unpin for RLComponentsMarker<B, E, EI, A>
impl<B, E, EI, A> UnsafeUnpin for RLComponentsMarker<B, E, EI, A>
impl<B, E, EI, A> UnwindSafe for RLComponentsMarker<B, 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
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