pub struct PerceptronExample {
pub x: Vec<f64>,
pub y: Vec<usize>,
}Expand description
One training example: a feature matrix x (T × n_features) and a gold
label sequence y (T).
Fields§
§x: Vec<f64>Feature matrix, row-major T × n_features.
y: Vec<usize>Gold labels, length T.
Trait Implementations§
Source§impl Clone for PerceptronExample
impl Clone for PerceptronExample
Source§fn clone(&self) -> PerceptronExample
fn clone(&self) -> PerceptronExample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PerceptronExample
impl RefUnwindSafe for PerceptronExample
impl Send for PerceptronExample
impl Sync for PerceptronExample
impl Unpin for PerceptronExample
impl UnsafeUnpin for PerceptronExample
impl UnwindSafe for PerceptronExample
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