pub struct OnlineYogiParameters {
pub l1: f32,
pub l2: f32,
pub beta2: f32,
pub initial_v: f32,
pub initial_linear: f32,
pub activation: Option<Activation>,
}
Expand description
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§
Source§impl Clone for OnlineYogiParameters
impl Clone for OnlineYogiParameters
Source§fn clone(&self) -> OnlineYogiParameters
fn clone(&self) -> OnlineYogiParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OnlineYogiParameters
impl Debug for OnlineYogiParameters
Source§impl Default for OnlineYogiParameters
impl Default for OnlineYogiParameters
Source§impl Message for OnlineYogiParameters
impl Message for OnlineYogiParameters
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.