pub struct LearningConfig {Show 13 fields
pub alpha: f64,
pub gamma: f64,
pub epsilon: f64,
pub epsilon_decay: f64,
pub epsilon_min: f64,
pub distill_top_k: usize,
pub distill_threshold: f64,
pub elastic_lambda: f64,
pub elastic_pin_count: usize,
pub federated_blend: f64,
pub meta_top_k: usize,
pub pmi_min_count: usize,
pub active_modes: HashSet<LearningMode>,
}Expand description
Full HELM hyperparameter configuration.
§Examples
use lmm_agent::cognition::learning::config::LearningConfig;
let cfg = LearningConfig::builder()
.alpha(0.05)
.gamma(0.95)
.epsilon(0.2)
.build();
assert_eq!(cfg.alpha, 0.05);Fields§
§alpha: f64Temporal-difference learning rate α ∈ (0, 1].
gamma: f64Discount factor γ ∈ [0, 1].
epsilon: f64Initial ε-greedy exploration probability ∈ (0, 1].
epsilon_decay: f64Per-episode ε decay multiplier ∈ (0, 1].
epsilon_min: f64Minimum exploration probability floor.
distill_top_k: usizeNumber of top cold entries promoted to the knowledge index per distillation.
distill_threshold: f64Minimum reward score required for a cold entry to be distillation-eligible.
elastic_lambda: f64Elastic penalty strength λ.
elastic_pin_count: usizeNumber of recall activations before an entry is considered “pinned.”
federated_blend: f64Blend weight for federated merge: 1.0 = keep local only, 0.0 = remote only.
meta_top_k: usizeNumber of task prototypes considered when computing meta-adaptation offsets.
pmi_min_count: usizeMinimum token-pair co-occurrence count required before PMI is computed.
active_modes: HashSet<LearningMode>Set of learning modes that are active.
Implementations§
Source§impl LearningConfig
impl LearningConfig
Sourcepub fn builder() -> LearningConfigBuilder
pub fn builder() -> LearningConfigBuilder
Returns a LearningConfigBuilder for ergonomic construction.
Sourcepub fn is_mode_active(&self, mode: LearningMode) -> bool
pub fn is_mode_active(&self, mode: LearningMode) -> bool
Returns true when the given mode is active.
§Examples
use lmm_agent::cognition::learning::config::LearningConfig;
use lmm_agent::types::LearningMode;
let cfg = LearningConfig::default();
assert!(cfg.is_mode_active(LearningMode::QTable));Trait Implementations§
Source§impl Clone for LearningConfig
impl Clone for LearningConfig
Source§fn clone(&self) -> LearningConfig
fn clone(&self) -> LearningConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more