pub struct ZeroShotConfig {Show 16 fields
pub num_probe_points: usize,
pub probe_step: f64,
pub num_curvature_directions: usize,
pub num_random_curvature_dirs: usize,
pub finite_diff_eps: f64,
pub sparsity_rel_threshold: f64,
pub noise_repeats: usize,
pub classifier_epochs: usize,
pub classifier_lr: f64,
pub classifier_l2: f64,
pub regressor_epochs: usize,
pub regressor_lr: f64,
pub regressor_l2: f64,
pub min_learning_rate: f64,
pub max_learning_rate: f64,
pub seed: u64,
}Expand description
Configuration for meta-feature extraction and meta-model training.
Fields§
§num_probe_points: usizeNumber of points visited along the normalized-descent probe path (>= 1).
probe_step: f64Step size of the normalized-descent probe walk.
num_curvature_directions: usizeMaximum number of coordinate directions used for curvature probing.
num_random_curvature_dirs: usizeNumber of additional random directions used for curvature probing.
finite_diff_eps: f64Finite-difference step (scaled by the parameter RMS) for curvature estimation.
sparsity_rel_threshold: f64Relative threshold below which a gradient component counts as “zero” for sparsity.
noise_repeats: usizeNumber of repeated gradient samples used to estimate gradient noise (>= 0).
classifier_epochs: usizeNumber of full-batch gradient-descent epochs for the classifier.
classifier_lr: f64Classifier learning rate.
classifier_l2: f64Classifier L2 regularization strength.
regressor_epochs: usizeNumber of full-batch gradient-descent epochs for the learning-rate regressor.
regressor_lr: f64Regressor learning rate.
regressor_l2: f64Regressor L2 regularization strength.
min_learning_rate: f64Minimum learning rate the regressor may recommend.
max_learning_rate: f64Maximum learning rate the regressor may recommend.
seed: u64Seed for the random curvature directions (keeps extraction deterministic).
Implementations§
Trait Implementations§
Source§impl Clone for ZeroShotConfig
impl Clone for ZeroShotConfig
Source§impl Debug for ZeroShotConfig
impl Debug for ZeroShotConfig
Source§impl Default for ZeroShotConfig
impl Default for ZeroShotConfig
Source§impl<'de> Deserialize<'de> for ZeroShotConfig
impl<'de> Deserialize<'de> for ZeroShotConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ZeroShotConfig
impl PartialEq for ZeroShotConfig
Source§impl Serialize for ZeroShotConfig
impl Serialize for ZeroShotConfig
impl StructuralPartialEq for ZeroShotConfig
Auto Trait Implementations§
impl Freeze for ZeroShotConfig
impl RefUnwindSafe for ZeroShotConfig
impl Send for ZeroShotConfig
impl Sync for ZeroShotConfig
impl Unpin for ZeroShotConfig
impl UnsafeUnpin for ZeroShotConfig
impl UnwindSafe for ZeroShotConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.