oa::data::Sample

Multi-tensor sample: input x and optional label y. Corresponds to oa::Dataset::Sample.

StRust public API

Declaration

pub struct Sample { pub x: Matrix, pub y: Option<Matrix>, }
Public Rust declaration.

Public Methods

pub fn has_label(&self) -> bool

Associated Functions

pub fn new(x: Matrix) -> Self
pub fn with_label(x: Matrix, y: Matrix) -> Self

Public Data Members

xMatrixfield
yOption<Matrix>field

Public Method Documentation

pub fn has_label( &self ) -> bool
No public source comment is attached to this declaration.
pub fn new( x: Matrix ) -> Self
No public source comment is attached to this declaration.
pub fn with_label( x: Matrix, y: Matrix ) -> Self
No public source comment is attached to this declaration.