pub struct TemporalValidationConfig {
pub min_gap: usize,
pub max_lookback: usize,
pub forward_chaining: bool,
pub n_splits: usize,
pub test_size: f64,
pub allow_overlap: bool,
pub seasonal_period: Option<usize>,
}Expand description
Configuration for temporal validation
Fields§
§min_gap: usizeMinimum gap between train and test sets (in time units)
max_lookback: usizeMaximum lookback window for features (prevents future data leakage)
forward_chaining: boolWhether to use forward chaining validation
n_splits: usizeNumber of validation splits
test_size: f64Percentage of data to use for testing in each split
allow_overlap: boolWhether to allow overlapping training periods
seasonal_period: Option<usize>Seasonal period for seasonal adjustments
Trait Implementations§
Source§impl Clone for TemporalValidationConfig
impl Clone for TemporalValidationConfig
Source§fn clone(&self) -> TemporalValidationConfig
fn clone(&self) -> TemporalValidationConfig
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 TemporalValidationConfig
impl Debug for TemporalValidationConfig
Auto Trait Implementations§
impl Freeze for TemporalValidationConfig
impl RefUnwindSafe for TemporalValidationConfig
impl Send for TemporalValidationConfig
impl Sync for TemporalValidationConfig
impl Unpin for TemporalValidationConfig
impl UnwindSafe for TemporalValidationConfig
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