pub struct SparsePolynomialFeaturesConfig {
pub degree: usize,
pub interaction_only: bool,
pub include_bias: bool,
pub max_terms: Option<usize>,
pub min_coefficient: Float,
pub sort_terms: bool,
}Expand description
Configuration for SparsePolynomialFeatures
Fields§
§degree: usizeThe degree of the polynomial features
interaction_only: boolWhether to include interaction terms only
include_bias: boolWhether to include bias (constant) term
max_terms: Option<usize>Maximum number of terms to generate (memory limit)
min_coefficient: FloatMinimum coefficient magnitude to keep (sparsity threshold)
sort_terms: boolWhether to sort terms by total degree first, then lexicographically
Trait Implementations§
Source§impl Clone for SparsePolynomialFeaturesConfig
impl Clone for SparsePolynomialFeaturesConfig
Source§fn clone(&self) -> SparsePolynomialFeaturesConfig
fn clone(&self) -> SparsePolynomialFeaturesConfig
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 SparsePolynomialFeaturesConfig
impl RefUnwindSafe for SparsePolynomialFeaturesConfig
impl Send for SparsePolynomialFeaturesConfig
impl Sync for SparsePolynomialFeaturesConfig
impl Unpin for SparsePolynomialFeaturesConfig
impl UnwindSafe for SparsePolynomialFeaturesConfig
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