pub struct OjasRule {
pub learning_rate: f64,
pub w_min: f64,
pub w_max: f64,
}Expand description
Oja’s rule for normalized Hebbian learning.
Oja’s rule prevents unbounded weight growth through normalization.
Δw = η * (y * x - y² * w)
Fields§
§learning_rate: f64Learning rate.
w_min: f64Minimum weight.
w_max: f64Maximum weight.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OjasRule
impl RefUnwindSafe for OjasRule
impl Send for OjasRule
impl Sync for OjasRule
impl Unpin for OjasRule
impl UnwindSafe for OjasRule
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