pub struct LAPConfig {
pub eta: f64,
pub min_priority: f64,
}Expand description
Loss-Adjusted Prioritization (LAP) configuration.
LAP uses priority = |TD_error| + eta * loss where eta is a
configurable scale factor. This provides better prioritization
for actor-critic methods where TD error alone is insufficient.
Reference: Schaul et al. (2015) extended with Fujimoto et al. (2020) LAP.
Fields§
§eta: f64Scale factor for the loss component.
min_priority: f64Minimum priority to avoid zero-probability sampling.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LAPConfig
impl RefUnwindSafe for LAPConfig
impl Send for LAPConfig
impl Sync for LAPConfig
impl Unpin for LAPConfig
impl UnwindSafe for LAPConfig
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