Trait border_core::StepProcessorBase
source · pub trait StepProcessorBase<E: Env> {
type Config: Clone;
type Output;
// Required methods
fn build(config: &Self::Config) -> Self;
fn reset(&mut self, init_obs: E::Obs);
fn process(&mut self, step: Step<E>) -> Self::Output;
}
Expand description
Process Step
and output an item Self::Output
.
This trait is used in Trainer
. Step
object is transformed to
Self::Output
, which will be pushed into a replay buffer implementing
ExperienceBufferBase
.
The type Self::Output
should be the same with ExperienceBufferBase::PushedItem
.