pub struct MetaFeatures {
pub values: Array1<f64>,
}Expand description
A fixed-length, real-valued description of an optimization task.
The values are stored in canonical order (see the module-level documentation and
FEATURE_NAMES); named accessors document the meaning of each entry.
Fields§
§values: Array1<f64>The raw (un-standardized) feature values, length NUM_FEATURES.
Implementations§
Source§impl MetaFeatures
impl MetaFeatures
Sourcepub fn from_values(values: Array1<f64>) -> Result<Self>
pub fn from_values(values: Array1<f64>) -> Result<Self>
Wrap a raw feature vector, validating its length.
Sourcepub fn log_dimension(&self) -> f64
pub fn log_dimension(&self) -> f64
ln(dim + 1) — the (log) problem dimensionality.
Sourcepub fn grad_norm_mean(&self) -> f64
pub fn grad_norm_mean(&self) -> f64
Mean gradient L2-norm across the probe path.
Sourcepub fn grad_norm_cv(&self) -> f64
pub fn grad_norm_cv(&self) -> f64
Coefficient of variation of the gradient L2-norm across the probe path.
Sourcepub fn grad_sparsity(&self) -> f64
pub fn grad_sparsity(&self) -> f64
Average fraction of gradient components that are effectively zero.
Sourcepub fn mean_log_curvature(&self) -> f64
pub fn mean_log_curvature(&self) -> f64
ln(1 + mean directional curvature).
Sourcepub fn log_condition_number(&self) -> f64
pub fn log_condition_number(&self) -> f64
ln(max directional curvature / min directional curvature) — condition-number
proxy.
Sourcepub fn direction_stability(&self) -> f64
pub fn direction_stability(&self) -> f64
Mean cosine similarity between successive gradients along the descent path.
Sourcepub fn noise_estimate(&self) -> f64
pub fn noise_estimate(&self) -> f64
Mean per-component coefficient of variation of repeated gradient samples.
Sourcepub fn log_param_scale(&self) -> f64
pub fn log_param_scale(&self) -> f64
ln(1 + RMS(params)) — the magnitude/scale of the parameters.
Trait Implementations§
Source§impl Clone for MetaFeatures
impl Clone for MetaFeatures
Source§impl Debug for MetaFeatures
impl Debug for MetaFeatures
Source§impl<'de> Deserialize<'de> for MetaFeatures
impl<'de> Deserialize<'de> for MetaFeatures
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 MetaFeatures
impl PartialEq for MetaFeatures
Source§impl Serialize for MetaFeatures
impl Serialize for MetaFeatures
impl StructuralPartialEq for MetaFeatures
Auto Trait Implementations§
impl Freeze for MetaFeatures
impl RefUnwindSafe for MetaFeatures
impl Send for MetaFeatures
impl Sync for MetaFeatures
impl Unpin for MetaFeatures
impl UnsafeUnpin for MetaFeatures
impl UnwindSafe for MetaFeatures
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.