pub struct GoalDistanceTransform {
pub scale: f64,
pub goal_start: usize,
pub goal_dim: usize,
}Expand description
Goal-distance reward transform.
Computes phi(s) = -scale * ||s[goal_slice] - goal|| and applies PBRS.
Expects extras to contain "phi_current" and "phi_next" entries
pre-computed via compute_goal_distance_potentials.
Fields§
§scale: f64§goal_start: usize§goal_dim: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for GoalDistanceTransform
impl RefUnwindSafe for GoalDistanceTransform
impl Send for GoalDistanceTransform
impl Sync for GoalDistanceTransform
impl Unpin for GoalDistanceTransform
impl UnwindSafe for GoalDistanceTransform
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