Struct sloword2vec::onehot::OneHot
[−]
[src]
pub struct OneHot<'a>(_, _);
Wraps a Row. 1 * V matrix into a newtype
Methods
impl<'a> OneHot<'a>
[src]
fn row(&self) -> ArrayView1<'a, f32>
[src]
Returns the row contained within this one hot newtype
fn index(&self) -> usize
[src]
Returns the column index of "1" inside the one-hot vector
Trait Implementations
impl<'a> Clone for OneHot<'a>
[src]
fn clone(&self) -> OneHot<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more