pub struct EwcConfig {
pub param_count: usize,
pub max_tasks: usize,
pub initial_lambda: f32,
pub min_lambda: f32,
pub max_lambda: f32,
pub fisher_ema_decay: f32,
pub boundary_threshold: f32,
pub gradient_history_size: usize,
}Expand description
EWC++ configuration
Fields§
§param_count: usizeNumber of parameters
max_tasks: usizeMaximum tasks to remember
initial_lambda: f32Initial lambda
min_lambda: f32Minimum lambda
max_lambda: f32Maximum lambda
fisher_ema_decay: f32Fisher EMA decay factor
boundary_threshold: f32Task boundary detection threshold
gradient_history_size: usizeGradient history for boundary detection
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EwcConfig
impl<'de> Deserialize<'de> for EwcConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EwcConfig
impl RefUnwindSafe for EwcConfig
impl Send for EwcConfig
impl Sync for EwcConfig
impl Unpin for EwcConfig
impl UnwindSafe for EwcConfig
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