Struct RLComponentsMarker
pub struct RLComponentsMarker<B, E, EI, A> { /* private fields */ }Expand description
Concrete type that implements the RLComponentsTypes trait.
Trait Implementations§
§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 as PolicyLearner<B>>::TrainContext: ItemLazy + Clone + Send,
<A as PolicyLearner<B>>::InnerPolicy: Policy<B> + Send,
<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::Observation: Batchable + Clone + Send,
<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::ActionDistribution: Batchable + Clone + Send,
<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::Action: Batchable + Clone + Send,
<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::ActionContext: ItemLazy + Clone + Send + 'static,
<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::PolicyState: Clone + Send,
<E as Environment>::State: Into<<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::Observation> + Clone + Send + 'static,
<E as Environment>::Action: From<<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::Action> + Into<<<A as PolicyLearner<B>>::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 as PolicyLearner<B>>::TrainContext: ItemLazy + Clone + Send,
<A as PolicyLearner<B>>::InnerPolicy: Policy<B> + Send,
<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::Observation: Batchable + Clone + Send,
<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::ActionDistribution: Batchable + Clone + Send,
<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::Action: Batchable + Clone + Send,
<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::ActionContext: ItemLazy + Clone + Send + 'static,
<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::PolicyState: Clone + Send,
<E as Environment>::State: Into<<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::Observation> + Clone + Send + 'static,
<E as Environment>::Action: From<<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::Action> + Into<<<A as PolicyLearner<B>>::InnerPolicy as Policy<B>>::Action> + Clone + Send + 'static,
§type LearningAgent = A
type LearningAgent = A
The learning agent.
§type Policy = <A as PolicyLearner<B>>::InnerPolicy
type Policy = <A as PolicyLearner<B>>::InnerPolicy
The policy used to take actions in the environment.
§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.
§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.
§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.
§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.
§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.
§type TrainingOutput = <A as PolicyLearner<B>>::TrainContext
type TrainingOutput = <A as PolicyLearner<B>>::TrainContext
The output data of a training step.
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> 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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