1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Continual learning strategies for streaming neural models.
//!
//! Provides drift-aware strategies that compose with irithyll's existing
//! drift detectors (ADWIN, DDM, Page-Hinkley) to prevent catastrophic
//! forgetting and maintain plasticity in long-running streams.
//!
//! # Strategies
//!
//! - [`StreamingEWC`] -- Elastic Weight Consolidation with streaming Fisher updates
//! - [`DriftMask`] -- Drift-triggered parameter isolation (streaming PackNet)
//! - [`NeuronRegeneration`] -- Continual Backpropagation (Dohare et al., Nature 2024)
//!
//! All implement [`ContinualStrategy`], which hooks into the gradient update
//! loop via `pre_update` / `post_update` and reacts to drift signals via
//! `on_drift`.
pub use StreamingEWC;
pub use DriftMask;
pub use NeuronRegeneration;
use crateDriftSignal;
/// Trait for continual learning strategies.
///
/// Strategies modify gradients before weight updates and respond to
/// drift signals from irithyll's drift detectors.