pub struct TemporalFeatureExtractor<S> { /* private fields */ }Expand description
TemporalFeatureExtractor for extracting features from datetime data
Implementations§
Source§impl TemporalFeatureExtractor<Untrained>
impl TemporalFeatureExtractor<Untrained>
Sourcepub fn extract_year(self, extract_year: bool) -> Self
pub fn extract_year(self, extract_year: bool) -> Self
Set whether to extract year
Sourcepub fn extract_month(self, extract_month: bool) -> Self
pub fn extract_month(self, extract_month: bool) -> Self
Set whether to extract month
Sourcepub fn extract_day(self, extract_day: bool) -> Self
pub fn extract_day(self, extract_day: bool) -> Self
Set whether to extract day
Sourcepub fn extract_day_of_week(self, extract_day_of_week: bool) -> Self
pub fn extract_day_of_week(self, extract_day_of_week: bool) -> Self
Set whether to extract day of week
Sourcepub fn extract_hour(self, extract_hour: bool) -> Self
pub fn extract_hour(self, extract_hour: bool) -> Self
Set whether to extract hour
Sourcepub fn extract_minute(self, extract_minute: bool) -> Self
pub fn extract_minute(self, extract_minute: bool) -> Self
Set whether to extract minute
Sourcepub fn extract_second(self, extract_second: bool) -> Self
pub fn extract_second(self, extract_second: bool) -> Self
Set whether to extract second
Sourcepub fn extract_quarter(self, extract_quarter: bool) -> Self
pub fn extract_quarter(self, extract_quarter: bool) -> Self
Set whether to extract quarter
Sourcepub fn extract_day_of_year(self, extract_day_of_year: bool) -> Self
pub fn extract_day_of_year(self, extract_day_of_year: bool) -> Self
Set whether to extract day of year
Sourcepub fn extract_week_of_year(self, extract_week_of_year: bool) -> Self
pub fn extract_week_of_year(self, extract_week_of_year: bool) -> Self
Set whether to extract week of year
Sourcepub fn cyclical_encoding(self, cyclical_encoding: bool) -> Self
pub fn cyclical_encoding(self, cyclical_encoding: bool) -> Self
Set whether to use cyclical encoding
Sourcepub fn include_holidays(self, include_holidays: bool) -> Self
pub fn include_holidays(self, include_holidays: bool) -> Self
Set whether to include holiday indicators
Sourcepub fn include_business_days(self, include_business_days: bool) -> Self
pub fn include_business_days(self, include_business_days: bool) -> Self
Set whether to include business day indicators
Sourcepub fn timezone_offset(self, timezone_offset: Float) -> Self
pub fn timezone_offset(self, timezone_offset: Float) -> Self
Set timezone offset in hours
Source§impl TemporalFeatureExtractor<Trained>
impl TemporalFeatureExtractor<Trained>
Sourcepub fn feature_names(&self) -> &[String]
pub fn feature_names(&self) -> &[String]
Get the feature names
Sourcepub fn n_features_out(&self) -> usize
pub fn n_features_out(&self) -> usize
Get the number of output features
Trait Implementations§
Source§impl<S: Clone> Clone for TemporalFeatureExtractor<S>
impl<S: Clone> Clone for TemporalFeatureExtractor<S>
Source§fn clone(&self) -> TemporalFeatureExtractor<S>
fn clone(&self) -> TemporalFeatureExtractor<S>
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<S: Debug> Debug for TemporalFeatureExtractor<S>
impl<S: Debug> Debug for TemporalFeatureExtractor<S>
Source§impl Default for TemporalFeatureExtractor<Untrained>
impl Default for TemporalFeatureExtractor<Untrained>
Source§impl Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ()> for TemporalFeatureExtractor<Untrained>
impl Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ()> for TemporalFeatureExtractor<Untrained>
Source§type Fitted = TemporalFeatureExtractor<Trained>
type Fitted = TemporalFeatureExtractor<Trained>
The fitted model type
Source§fn fit(self, _x: &Array1<Float>, _y: &()) -> Result<Self::Fitted>
fn fit(self, _x: &Array1<Float>, _y: &()) -> Result<Self::Fitted>
Fit the model to the provided data with validation
Source§fn fit_with_validation(
self,
x: &X,
y: &Y,
_x_val: Option<&X>,
_y_val: Option<&Y>,
) -> Result<(Self::Fitted, FitMetrics), SklearsError>where
Self: Sized,
fn fit_with_validation(
self,
x: &X,
y: &Y,
_x_val: Option<&X>,
_y_val: Option<&Y>,
) -> Result<(Self::Fitted, FitMetrics), SklearsError>where
Self: Sized,
Fit with custom validation and early stopping
Auto Trait Implementations§
impl<S> Freeze for TemporalFeatureExtractor<S>
impl<S> RefUnwindSafe for TemporalFeatureExtractor<S>where
S: RefUnwindSafe,
impl<S> Send for TemporalFeatureExtractor<S>where
S: Send,
impl<S> Sync for TemporalFeatureExtractor<S>where
S: Sync,
impl<S> Unpin for TemporalFeatureExtractor<S>where
S: Unpin,
impl<S> UnwindSafe for TemporalFeatureExtractor<S>where
S: UnwindSafe,
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