[][src]Struct tensorflow_proto::tensorflow::tpu::OnlineYogiParameters

pub struct OnlineYogiParameters {
    pub l1: f32,
    pub l2: f32,
    pub beta2: f32,
    pub initial_v: f32,
    pub initial_linear: f32,
    pub activation: Option<Activation>,
}

The online Yogi optimizer does not implement hyper-parameter update; use the dynamic learning rate feature instead, setting the learning rate to: user learning_rate * sqrt(1 - beta2^t) / (1 - beta1^t) Here, t is the current timestep.

https://papers.nips.cc/paper/8186-adaptive-methods-for-nonconvex-optimization.pdf plus some extensions based on FTRL.

Note that the code by default implements the lazy version of online Yogi.

Fields

l1: f32

The L1 regularization parameter (used analogously to the one in FTRL).

l2: f32

The L2 regularization parameter (used analogously to the one in FTRL).

beta2: f32

\beta_2 from Algorithm 2 in the paper.

initial_v: f32

Initial value of V variable in paper.

initial_linear: f32

Initial value of linear variable in FTRL.

activation: Option<Activation>

Activation to use to replace sign function in v_t update in Algorithm 2 of paper.

Trait Implementations

impl Clone for OnlineYogiParameters[src]

impl Debug for OnlineYogiParameters[src]

impl Default for OnlineYogiParameters[src]

impl Message for OnlineYogiParameters[src]

impl PartialEq<OnlineYogiParameters> for OnlineYogiParameters[src]

impl StructuralPartialEq for OnlineYogiParameters[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.