Struct border_core::replay_buffer::PerConfig
source · pub struct PerConfig { /* private fields */ }
Expand description
Configuration for prioritized experience replay.
Implementations§
source§impl PerConfig
impl PerConfig
sourcepub fn beta_0(self, beta_0: f32) -> Self
pub fn beta_0(self, beta_0: f32) -> Self
Sets beta_0, the initial value of the exponent of importance weights.
sourcepub fn beta_final(self, beta_final: f32) -> Self
pub fn beta_final(self, beta_final: f32) -> Self
Sets beta_final, the final value of the exponent of importance weights.
sourcepub fn n_opts_final(self, n_opts_final: usize) -> Self
pub fn n_opts_final(self, n_opts_final: usize) -> Self
Sets the optimization step when beta reaches the final value.
sourcepub fn normalize(self, normalize: WeightNormalizer) -> Self
pub fn normalize(self, normalize: WeightNormalizer) -> Self
Sets how to normalize the importance weight.
Trait Implementations§
source§impl<'de> Deserialize<'de> for PerConfig
impl<'de> Deserialize<'de> for PerConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<PerConfig> for PerConfig
impl PartialEq<PerConfig> for PerConfig
impl StructuralPartialEq for PerConfig
Auto Trait Implementations§
impl RefUnwindSafe for PerConfig
impl Send for PerConfig
impl Sync for PerConfig
impl Unpin for PerConfig
impl UnwindSafe for PerConfig
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