pub struct Sample {
pub x: Matrix,
pub y: Option<Matrix>,
}Expand description
Multi-tensor sample: input x and optional label y.
Corresponds to oa::Dataset::Sample.
Fields§
§x: MatrixInput value.
y: Option<Matrix>Label / target value. None when the dataset has no labels.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Sample
impl !Send for Sample
impl !Sync for Sample
impl !UnwindSafe for Sample
impl Forget for Sample
impl Freeze for Sample
impl Move for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
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