pub struct PolynomialFeaturesConfig {
pub degree: usize,
pub interaction_only: bool,
pub include_bias: bool,
pub order: FeatureOrder,
pub interaction_depth: Option<usize>,
pub max_features: Option<usize>,
pub feature_selection: bool,
pub alpha: Float,
}Expand description
Configuration for PolynomialFeatures
Fields§
§degree: usizeThe degree of the polynomial features
interaction_only: boolWhether to include interaction terms
include_bias: boolWhether to include bias (constant) term
order: FeatureOrderFeature name order for output features
interaction_depth: Option<usize>Maximum depth of interactions (None for no limit)
max_features: Option<usize>Maximum number of features to include (for feature selection)
feature_selection: boolWhether to use regularized feature selection during expansion
alpha: FloatRegularization parameter for feature selection (higher = more selective)
Trait Implementations§
Source§impl Clone for PolynomialFeaturesConfig
impl Clone for PolynomialFeaturesConfig
Source§fn clone(&self) -> PolynomialFeaturesConfig
fn clone(&self) -> PolynomialFeaturesConfig
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 PolynomialFeaturesConfig
impl Debug for PolynomialFeaturesConfig
Auto Trait Implementations§
impl Freeze for PolynomialFeaturesConfig
impl RefUnwindSafe for PolynomialFeaturesConfig
impl Send for PolynomialFeaturesConfig
impl Sync for PolynomialFeaturesConfig
impl Unpin for PolynomialFeaturesConfig
impl UnwindSafe for PolynomialFeaturesConfig
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