pub struct TimeSeries {
pub k: usize,
pub gap: usize,
}Expand description
The one scheme that is deliberately not a partition: the first block has nothing before it to learn from, so it only ever trains and is never held out. Every other scheme here holds out each sample exactly once.
gap drops that many samples between the two sides, which is what purged
and embargoed cross-validation are — a parameter, not a scheme. It uses
neither the classes nor the groups, and unlike the rest k = 1 is
meaningful: a plain holdout of the tail.
Fields§
§k: usizeHow many splits.
gap: usizeHow many samples to drop between training and test.
Implementations§
Source§impl TimeSeries
impl TimeSeries
Trait Implementations§
Source§impl Clone for TimeSeries
impl Clone for TimeSeries
Source§fn clone(&self) -> TimeSeries
fn clone(&self) -> TimeSeries
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 TimeSeries
impl Debug for TimeSeries
Source§impl Display for TimeSeries
impl Display for TimeSeries
Source§impl From<TimeSeries> for Partition
impl From<TimeSeries> for Partition
Source§fn from(cut: TimeSeries) -> Self
fn from(cut: TimeSeries) -> Self
Converts to this type from the input type.
Source§impl Hash for TimeSeries
impl Hash for TimeSeries
Source§impl PartialEq for TimeSeries
impl PartialEq for TimeSeries
impl Eq for TimeSeries
impl StructuralPartialEq for TimeSeries
Auto Trait Implementations§
impl Freeze for TimeSeries
impl RefUnwindSafe for TimeSeries
impl Send for TimeSeries
impl Sync for TimeSeries
impl Unpin for TimeSeries
impl UnsafeUnpin for TimeSeries
impl UnwindSafe for TimeSeries
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