pub struct SparseMemoryInfo {
pub n_sparse_terms: usize,
pub theoretical_dense_features: usize,
pub sparsity_ratio: f64,
pub avg_features_per_term: f64,
pub memory_reduction_factor: f64,
}Expand description
Memory usage information for sparse polynomial features
Fields§
§n_sparse_terms: usizeNumber of sparse terms actually generated
theoretical_dense_features: usizeNumber of features a dense implementation would generate
sparsity_ratio: f64Ratio of sparse to dense features (sparsity)
avg_features_per_term: f64Average number of features per sparse term
memory_reduction_factor: f64Factor by which memory is reduced compared to dense
Trait Implementations§
Source§impl Clone for SparseMemoryInfo
impl Clone for SparseMemoryInfo
Source§fn clone(&self) -> SparseMemoryInfo
fn clone(&self) -> SparseMemoryInfo
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 SparseMemoryInfo
impl RefUnwindSafe for SparseMemoryInfo
impl Send for SparseMemoryInfo
impl Sync for SparseMemoryInfo
impl Unpin for SparseMemoryInfo
impl UnwindSafe for SparseMemoryInfo
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