pub struct LearningConfigBuilder { /* private fields */ }Expand description
Fluent builder for LearningConfig.
Implementations§
Source§impl LearningConfigBuilder
impl LearningConfigBuilder
Sourcepub fn epsilon_decay(self, v: f64) -> Self
pub fn epsilon_decay(self, v: f64) -> Self
Sets the per-episode ε decay multiplier.
Sourcepub fn epsilon_min(self, v: f64) -> Self
pub fn epsilon_min(self, v: f64) -> Self
Sets the minimum ε floor.
Sourcepub fn distill_top_k(self, k: usize) -> Self
pub fn distill_top_k(self, k: usize) -> Self
Sets how many cold entries are promoted per distillation pass.
Sourcepub fn distill_threshold(self, v: f64) -> Self
pub fn distill_threshold(self, v: f64) -> Self
Sets the distillation reward threshold.
Sourcepub fn elastic_lambda(self, v: f64) -> Self
pub fn elastic_lambda(self, v: f64) -> Self
Sets the elastic penalty λ.
Sourcepub fn elastic_pin_count(self, n: usize) -> Self
pub fn elastic_pin_count(self, n: usize) -> Self
Sets the activation count threshold for pinning.
Sourcepub fn federated_blend(self, v: f64) -> Self
pub fn federated_blend(self, v: f64) -> Self
Sets the federated blend weight.
Sourcepub fn meta_top_k(self, k: usize) -> Self
pub fn meta_top_k(self, k: usize) -> Self
Sets the number of meta-prototypes considered per lookup.
Sourcepub fn pmi_min_count(self, n: usize) -> Self
pub fn pmi_min_count(self, n: usize) -> Self
Sets the minimum PMI co-occurrence count.
Sourcepub fn active_modes(self, modes: HashSet<LearningMode>) -> Self
pub fn active_modes(self, modes: HashSet<LearningMode>) -> Self
Sets the enabled learning modes.
Sourcepub fn build(self) -> LearningConfig
pub fn build(self) -> LearningConfig
Builds the LearningConfig by applying all overrides on top of defaults.
Trait Implementations§
Source§impl Debug for LearningConfigBuilder
impl Debug for LearningConfigBuilder
Source§impl Default for LearningConfigBuilder
impl Default for LearningConfigBuilder
Source§fn default() -> LearningConfigBuilder
fn default() -> LearningConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LearningConfigBuilder
impl RefUnwindSafe for LearningConfigBuilder
impl Send for LearningConfigBuilder
impl Sync for LearningConfigBuilder
impl Unpin for LearningConfigBuilder
impl UnsafeUnpin for LearningConfigBuilder
impl UnwindSafe for LearningConfigBuilder
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