pub struct Word2Vec<'a> {
pub input: &'a mut Matrix,
/* private fields */
}Expand description
Initialise the word2vec model
§Fields
input: The input matrixoutput: The output matrixdim: The dimension of the modellr: The learning rateneg: The number of negative samplesgrad: The gradient vectorneg_pos: The number of negative samples per positive samplesigmoid_table: The sigmoid tablelog_table: The log tablenegative_table: The negative tableloss: The lossn_samples: The number of samples
Fields§
§input: &'a mut MatrixImplementations§
Auto Trait Implementations§
impl<'a> Freeze for Word2Vec<'a>
impl<'a> RefUnwindSafe for Word2Vec<'a>
impl<'a> Send for Word2Vec<'a>
impl<'a> Sync for Word2Vec<'a>
impl<'a> Unpin for Word2Vec<'a>
impl<'a> UnsafeUnpin for Word2Vec<'a>
impl<'a> !UnwindSafe for Word2Vec<'a>
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
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more