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 row(self, row: impl Into<Row<T>>) -> Self
pub fn iter(&self) -> Iter<'_, Row<T>> ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn shuffle(self) -> Self
pub fn shape(&self) -> (usize, usize, usize)
pub fn features(&self) -> Vec<Vec<T>>where
T: Clone,
pub fn labels(&self) -> Vec<Vec<T>>where
T: Clone,
pub fn split(self, ratio: f32) -> (Self, Self)where
T: Clone,
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for DataSet<T>
impl<T> RefUnwindSafe for DataSet<T>where
Vec<Row<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
Vec<Row<T>>: UnsafeUnpin,
impl<T> UnwindSafe for DataSet<T>where
Vec<Row<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