pub struct DataCharacteristics {
pub n_samples: usize,
pub nfeatures: usize,
pub sparsity: f64,
pub data_range: f64,
pub outlier_ratio: f64,
pub has_missing: bool,
pub memory_footprint_mb: f64,
pub elementsize: usize,
}
Expand description
Data characteristics for optimization decisions
Fields§
§n_samples: usize
Number of samples
nfeatures: usize
Number of features
sparsity: f64
Data sparsity (0.0 = dense, 1.0 = all zeros)
data_range: f64
Data range (max - min)
outlier_ratio: f64
Outlier ratio
has_missing: bool
Whether data has missing values
memory_footprint_mb: f64
Estimated memory footprint in MB
elementsize: usize
Data type size (e.g., 8 for f64)
Implementations§
Source§impl DataCharacteristics
impl DataCharacteristics
Sourcepub fn analyze(data: &ArrayView2<'_, f64>) -> Result<Self>
pub fn analyze(data: &ArrayView2<'_, f64>) -> Result<Self>
Analyze data characteristics from array view
Sourcepub fn is_large_dataset(&self) -> bool
pub fn is_large_dataset(&self) -> bool
Check if data is considered “large”
Sourcepub fn is_wide_dataset(&self) -> bool
pub fn is_wide_dataset(&self) -> bool
Check if data is considered “wide” (more features than samples)
Sourcepub fn has_outliers(&self) -> bool
pub fn has_outliers(&self) -> bool
Check if data has significant outliers
Trait Implementations§
Source§impl Clone for DataCharacteristics
impl Clone for DataCharacteristics
Source§fn clone(&self) -> DataCharacteristics
fn clone(&self) -> DataCharacteristics
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 moreAuto Trait Implementations§
impl Freeze for DataCharacteristics
impl RefUnwindSafe for DataCharacteristics
impl Send for DataCharacteristics
impl Sync for DataCharacteristics
impl Unpin for DataCharacteristics
impl UnwindSafe for DataCharacteristics
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 moreSource§impl<T> Pointable for T
impl<T> Pointable 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>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.