Struct wyrm::optim::SGD [−][src]
pub struct SGD { /* fields omitted */ }
Standard stochastic gradient descent optimizer with a fixed learning rate.
Methods
impl SGD
[src]
impl SGD
pub fn new() -> Self
[src]
pub fn new() -> Self
Create a new optimizer instance with a given set of parameters.
pub fn learning_rate(self, learning_rate: f32) -> Self
[src]
pub fn learning_rate(self, learning_rate: f32) -> Self
Set the learning rate.
pub fn clamp(self, min: f32, max: f32) -> Self
[src]
pub fn clamp(self, min: f32, max: f32) -> Self
Set the clamp bounds.