pub struct AntiHebbianRule {
pub learning_rate: f64,
pub w_min: f64,
pub w_max: f64,
}Expand description
Anti-Hebbian learning rule.
Opposite of Hebbian learning, weakens connections between co-active neurons.
Δw = -η * x * y
Fields§
§learning_rate: f64Learning rate.
w_min: f64Minimum weight.
w_max: f64Maximum weight.
Implementations§
Trait Implementations§
Source§impl Clone for AntiHebbianRule
impl Clone for AntiHebbianRule
Source§fn clone(&self) -> AntiHebbianRule
fn clone(&self) -> AntiHebbianRule
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 AntiHebbianRule
impl Debug for AntiHebbianRule
Auto Trait Implementations§
impl Freeze for AntiHebbianRule
impl RefUnwindSafe for AntiHebbianRule
impl Send for AntiHebbianRule
impl Sync for AntiHebbianRule
impl Unpin for AntiHebbianRule
impl UnwindSafe for AntiHebbianRule
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