Trait burn::data::dataset::transform::Window

pub trait Window<I> {
    // Required method
    fn window(&self, current: usize, size: NonZero<usize>) -> Option<Vec<I>>;
}
Expand description

Functionality to create a window.

Required Methods§

fn window(&self, current: usize, size: NonZero<usize>) -> Option<Vec<I>>

Creates a window of a collection.

§Returns

A Vec<I> representing the window.

Implementors§

§

impl<I, T> Window<I> for T
where T: Dataset<I> + ?Sized,