pub struct HebbianRule {
pub learning_rate: f64,
pub normalize: bool,
pub w_min: f64,
pub w_max: f64,
}Expand description
Hebbian learning rule.
Classic Hebbian learning: “Cells that fire together, wire together.”
Δw = η * x * y
Fields§
§learning_rate: f64Learning rate.
normalize: boolWhether to normalize weights.
w_min: f64Minimum weight.
w_max: f64Maximum weight.
Implementations§
Source§impl HebbianRule
impl HebbianRule
Sourcepub fn normalized(self) -> Self
pub fn normalized(self) -> Self
Create normalized Hebbian rule.
Trait Implementations§
Source§impl Clone for HebbianRule
impl Clone for HebbianRule
Source§fn clone(&self) -> HebbianRule
fn clone(&self) -> HebbianRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HebbianRule
impl Debug for HebbianRule
Auto Trait Implementations§
impl Freeze for HebbianRule
impl RefUnwindSafe for HebbianRule
impl Send for HebbianRule
impl Sync for HebbianRule
impl Unpin for HebbianRule
impl UnwindSafe for HebbianRule
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