pub struct DataSet<T> { /* private fields */ }Implementations§
Source§impl<T> DataSet<T>
impl<T> DataSet<T>
pub fn new(inputs: Vec<Vec<T>>, outputs: Vec<Vec<T>>) -> Self
pub fn iter(&self) -> impl Iterator<Item = (&[T], &[T])>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn shape(&self) -> (usize, usize, usize)
pub fn append(self, features: Vec<T>, labels: Vec<T>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for DataSet<T>
impl<T> RefUnwindSafe for DataSet<T>where
Matrix<T>: RefUnwindSafe,
impl<T> Send for DataSet<T>
impl<T> Sync for DataSet<T>
impl<T> Unpin for DataSet<T>
impl<T> UnsafeUnpin for DataSet<T>where
Matrix<T>: UnsafeUnpin,
impl<T> UnwindSafe for DataSet<T>where
Matrix<T>: 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