pub struct ResonatorConfig {
pub max_iterations: usize,
pub convergence_threshold: f64,
pub learning_rate: f64,
pub momentum: f64,
pub weight_decay: f64,
pub temperature: f64,
pub soft_cleanup: bool,
pub soft_cleanup_top_k: usize,
}Expand description
Configuration for resonator network
Fields§
§max_iterations: usizeMaximum iterations before giving up
convergence_threshold: f64Convergence threshold (cosine similarity to previous estimate)
learning_rate: f64Learning rate for gradient updates during training
momentum: f64Momentum coefficient for gradient updates
weight_decay: f64Weight decay for regularization
temperature: f64Temperature for softmax cleanup (lower = sharper)
soft_cleanup: boolWhether to use soft cleanup (weighted average) vs hard (argmax)
soft_cleanup_top_k: usizeNumber of top candidates to consider in soft cleanup
Trait Implementations§
Source§impl Clone for ResonatorConfig
impl Clone for ResonatorConfig
Source§fn clone(&self) -> ResonatorConfig
fn clone(&self) -> ResonatorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResonatorConfig
impl Debug for ResonatorConfig
Auto Trait Implementations§
impl Freeze for ResonatorConfig
impl RefUnwindSafe for ResonatorConfig
impl Send for ResonatorConfig
impl Sync for ResonatorConfig
impl Unpin for ResonatorConfig
impl UnwindSafe for ResonatorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more