entrenar 0.7.11

Training & Optimization library with autograd, LoRA, quantization, and model merging
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Retraining trigger policies.

/// Retraining trigger policy
#[derive(Clone, Debug, Default)]
pub enum RetrainPolicy {
    /// Retrain if >= N features show drift
    FeatureCount { count: usize },
    /// Retrain if any feature with these names drifts
    CriticalFeature { names: Vec<String> },
    /// Retrain if drift percentage exceeds threshold
    DriftPercentage { threshold: f64 },
    /// Retrain on any critical severity drift
    #[default]
    AnyCritical,
}