pub struct AutoFeatureConfig {
pub period: Option<usize>,
pub rolling_windows: Vec<usize>,
pub variance_threshold: Option<f64>,
pub temporal_features: bool,
}Expand description
Configuration for auto-feature generation.
Fields§
§period: Option<usize>Known seasonal period (in number of observations).
rolling_windows: Vec<usize>Rolling window sizes (number of observations). Default: [60, 360, 1440, 10080].
variance_threshold: Option<f64>Variance threshold for pruning. None → keep all features.
temporal_features: boolWhether to generate temporal features from nanosecond timestamps.
Implementations§
Source§impl AutoFeatureConfig
impl AutoFeatureConfig
Sourcepub fn with_period(self, period: usize) -> Self
pub fn with_period(self, period: usize) -> Self
Sets the seasonal period (in number of observations).
Sourcepub fn with_windows(self, windows: Vec<usize>) -> Self
pub fn with_windows(self, windows: Vec<usize>) -> Self
Overrides the rolling window sizes.
Sourcepub fn with_variance_threshold(self, threshold: f64) -> Self
pub fn with_variance_threshold(self, threshold: f64) -> Self
Sets the variance threshold for pruning near-constant features.
Trait Implementations§
Source§impl Clone for AutoFeatureConfig
impl Clone for AutoFeatureConfig
Source§fn clone(&self) -> AutoFeatureConfig
fn clone(&self) -> AutoFeatureConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AutoFeatureConfig
impl Debug for AutoFeatureConfig
Auto Trait Implementations§
impl Freeze for AutoFeatureConfig
impl RefUnwindSafe for AutoFeatureConfig
impl Send for AutoFeatureConfig
impl Sync for AutoFeatureConfig
impl Unpin for AutoFeatureConfig
impl UnsafeUnpin for AutoFeatureConfig
impl UnwindSafe for AutoFeatureConfig
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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