pub struct MasteryConfig {
pub pressure_threshold: i16,
pub participation_threshold: f32,
pub magnitude_cost: u8,
pub flip_penalty: u8,
pub pressure_scale: f32,
pub hub_threshold: u16,
pub hub_decay_rate: f32,
pub flip_cooldown_us: u64,
}Expand description
Configuration for mastery learning.
Fields§
§pressure_threshold: i16Pressure threshold before any modification occurs
participation_threshold: f32Activity threshold for participation (0.0-1.0, top fraction)
magnitude_cost: u8Base cost for magnitude changes
flip_penalty: u8Penalty cost for polarity flips
pressure_scale: f32Scale factor for pressure accumulation
hub_threshold: u16Hub threshold: fan-in count above which anti-Hebbian kicks in
hub_decay_rate: f32Anti-Hebbian decay rate for overused hubs (0.0-1.0)
flip_cooldown_us: u64Flip cooldown in microseconds (prevents rapid polarity thrashing)
Trait Implementations§
Source§impl Clone for MasteryConfig
impl Clone for MasteryConfig
Source§fn clone(&self) -> MasteryConfig
fn clone(&self) -> MasteryConfig
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 MasteryConfig
impl Debug for MasteryConfig
Source§impl Default for MasteryConfig
impl Default for MasteryConfig
impl Copy for MasteryConfig
Auto Trait Implementations§
impl Freeze for MasteryConfig
impl RefUnwindSafe for MasteryConfig
impl Send for MasteryConfig
impl Sync for MasteryConfig
impl Unpin for MasteryConfig
impl UnwindSafe for MasteryConfig
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