pub struct VecDataset { /* private fields */ }Expand description
A simple in-memory dataset backed by a Vec<Sample>.
Useful for building datasets programmatically or loading from CSV/JSON.
Implementations§
Trait Implementations§
Source§impl Dataset for VecDataset
impl Dataset for VecDataset
Source§fn feature_shape(&self) -> &[usize]
fn feature_shape(&self) -> &[usize]
The shape of a single feature sample (without batch dim).
Source§fn target_shape(&self) -> &[usize]
fn target_shape(&self) -> &[usize]
The shape of a single target sample (without batch dim).
Auto Trait Implementations§
impl Freeze for VecDataset
impl RefUnwindSafe for VecDataset
impl Send for VecDataset
impl Sync for VecDataset
impl Unpin for VecDataset
impl UnsafeUnpin for VecDataset
impl UnwindSafe for VecDataset
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> 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