Realm

oa::ml::StepScheduler

Step-decay schedule: base * gamma^floor(step / step_size).

StRust public API

Declaration

pub struct StepScheduler { /* private fields */ }
Public Rust declaration.

Public Methods

fn learning_rate(&self, step: u64) -> f32

Associated Functions

pub fn new(base_learning_rate: f32, gamma: f32, step_size: u64) -> Result<Self>

Public Method Documentation

fn learning_rate( &self, step: u64 ) -> f32
No public source comment is attached to this declaration.
pub fn new( base_learning_rate: f32, gamma: f32, step_size: u64 ) -> Result<Self>
No public source comment is attached to this declaration.