pub struct OnlineGradientDescent {
pub weights: Vec<f64>,
pub eta: f64,
pub d: f64,
pub g: f64,
pub t: usize,
}Expand description
Online Gradient Descent with regret bound O(√T).
Fields§
§weights: Vec<f64>Current parameter vector w_t.
eta: f64Learning rate η.
d: f64Constraint set radius D (‖w‖ ≤ D).
g: f64Gradient norm bound G (‖∇_t‖ ≤ G).
t: usizeRound count.
Implementations§
Auto Trait Implementations§
impl Freeze for OnlineGradientDescent
impl RefUnwindSafe for OnlineGradientDescent
impl Send for OnlineGradientDescent
impl Sync for OnlineGradientDescent
impl Unpin for OnlineGradientDescent
impl UnsafeUnpin for OnlineGradientDescent
impl UnwindSafe for OnlineGradientDescent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more