pub struct AlignmentOptConfig {
pub max_iterations: usize,
pub learning_rate: f64,
pub tolerance: f64,
pub use_cka: bool,
pub fd_step: f64,
}Expand description
Configuration for alignment-based kernel hyperparameter search.
Fields§
§max_iterations: usizeMaximum number of iterations (default: 50).
learning_rate: f64Step size for gradient ascent (default: 0.01).
tolerance: f64Convergence threshold: stop when |Δscore| < tolerance (default: 1e-6).
use_cka: boolIf true, use CKA; otherwise use KTA (default: true).
fd_step: f64Finite-difference step for gradient estimation (default: 1e-5).
Trait Implementations§
Source§impl Clone for AlignmentOptConfig
impl Clone for AlignmentOptConfig
Source§fn clone(&self) -> AlignmentOptConfig
fn clone(&self) -> AlignmentOptConfig
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 AlignmentOptConfig
impl Debug for AlignmentOptConfig
Auto Trait Implementations§
impl Freeze for AlignmentOptConfig
impl RefUnwindSafe for AlignmentOptConfig
impl Send for AlignmentOptConfig
impl Sync for AlignmentOptConfig
impl Unpin for AlignmentOptConfig
impl UnsafeUnpin for AlignmentOptConfig
impl UnwindSafe for AlignmentOptConfig
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