pub struct FeatureStats {
pub mean: [f32; 8],
pub std: [f32; 8],
}Expand description
Statistics for feature normalization
Fields§
§mean: [f32; 8]Mean values for each feature dimension
std: [f32; 8]Standard deviation for each feature dimension
Implementations§
Source§impl FeatureStats
impl FeatureStats
Sourcepub fn from_features(features: &[CommitFeatures]) -> Self
pub fn from_features(features: &[CommitFeatures]) -> Self
Compute statistics from a collection of features
Trait Implementations§
Source§impl Clone for FeatureStats
impl Clone for FeatureStats
Source§fn clone(&self) -> FeatureStats
fn clone(&self) -> FeatureStats
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 FeatureStats
impl Debug for FeatureStats
Source§impl Default for FeatureStats
impl Default for FeatureStats
Source§fn default() -> FeatureStats
fn default() -> FeatureStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FeatureStats
impl RefUnwindSafe for FeatureStats
impl Send for FeatureStats
impl Sync for FeatureStats
impl Unpin for FeatureStats
impl UnsafeUnpin for FeatureStats
impl UnwindSafe for FeatureStats
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