Skip to main content

PAL

Struct PAL 

Source
pub struct PAL<Q> {
    pub q_func: Q,
    pub alpha: f64,
    pub gamma: f64,
}
Expand description

Persistent Advantage Learning

§References

  • Bellemare, Marc G., et al. “Increasing the Action Gap: New Operators for Reinforcement Learning.” AAAI. 2016.

Fields§

§q_func: Q§alpha: f64§gamma: f64

Trait Implementations§

Source§

impl<'m, S, Q> Handler<&'m Transition<S, usize>> for PAL<Q>

Source§

type Response = <Q as Handler<StateActionUpdate<&'m S, usize>>>::Response

Source§

type Error = <Q as Handler<StateActionUpdate<&'m S, usize>>>::Error

Source§

fn handle( &mut self, t: &'m Transition<S, usize>, ) -> Result<Self::Response, Self::Error>

Source§

fn handle_unchecked(&mut self, msg: M) -> Self::Response

Source§

impl<Q> Parameterised for PAL<Q>
where Q: Parameterised,

Source§

fn weights(&self) -> Weights

Return an owned copy of the weights.
Source§

fn weights_dim(&self) -> (usize, usize)

Return the dimensions of the weight matrix.
Source§

fn weights_view(&self) -> WeightsView<'_>

Return a read-only view of the weights.
Source§

fn weights_view_mut(&mut self) -> WeightsViewMut<'_>

Return a mutable view of the weights.
Source§

fn n_weights(&self) -> usize

Auto Trait Implementations§

§

impl<Q> Freeze for PAL<Q>
where Q: Freeze,

§

impl<Q> RefUnwindSafe for PAL<Q>
where Q: RefUnwindSafe,

§

impl<Q> Send for PAL<Q>
where Q: Send,

§

impl<Q> Sync for PAL<Q>
where Q: Sync,

§

impl<Q> Unpin for PAL<Q>
where Q: Unpin,

§

impl<Q> UnsafeUnpin for PAL<Q>
where Q: UnsafeUnpin,

§

impl<Q> UnwindSafe for PAL<Q>
where Q: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<M> Message for M