SNAP Library 4.0, User Reference
2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Go to the source code of this file.
Functions | |
void | LearnVocab (TVVec< TInt, int64 > &WalksVV, TIntV &Vocab) |
void | InitUnigramTable (TIntV &Vocab, TIntV &KTable, TFltV &UTable) |
int64 | RndUnigramInt (TIntV &KTable, TFltV &UTable, TRnd &Rnd) |
void | InitNegEmb (TIntV &Vocab, int &Dimensions, TVVec< TFlt, int64 > &SynNeg) |
void | InitPosEmb (TIntV &Vocab, int &Dimensions, TRnd &Rnd, TVVec< TFlt, int64 > &SynPos) |
void | TrainModel (TVVec< TInt, int64 > &WalksVV, int &Dimensions, int &WinSize, int &Iter, bool &Verbose, TIntV &KTable, TFltV &UTable, int64 &WordCntAll, TFltV &ExpTable, double &Alpha, int64 CurrWalk, TRnd &Rnd, TVVec< TFlt, int64 > &SynNeg, TVVec< TFlt, int64 > &SynPos) |
void | LearnEmbeddings (TVVec< TInt, int64 > &WalksVV, int &Dimensions, int &WinSize, int &Iter, bool &Verbose, TIntFltVH &EmbeddingsHV) |
Learns embeddings using SGD, Skip-gram with negative sampling. More... | |
Definition at line 63 of file word2vec.cpp.
Definition at line 73 of file word2vec.cpp.
Definition at line 18 of file word2vec.cpp.
void LearnEmbeddings | ( | TVVec< TInt, int64 > & | WalksVV, |
int & | Dimensions, | ||
int & | WinSize, | ||
int & | Iter, | ||
bool & | Verbose, | ||
TIntFltVH & | EmbeddingsHV | ||
) |
Learns embeddings using SGD, Skip-gram with negative sampling.
Definition at line 148 of file word2vec.cpp.
Definition at line 8 of file word2vec.cpp.
Definition at line 56 of file word2vec.cpp.
void TrainModel | ( | TVVec< TInt, int64 > & | WalksVV, |
int & | Dimensions, | ||
int & | WinSize, | ||
int & | Iter, | ||
bool & | Verbose, | ||
TIntV & | KTable, | ||
TFltV & | UTable, | ||
int64 & | WordCntAll, | ||
TFltV & | ExpTable, | ||
double & | Alpha, | ||
int64 | CurrWalk, | ||
TRnd & | Rnd, | ||
TVVec< TFlt, int64 > & | SynNeg, | ||
TVVec< TFlt, int64 > & | SynPos | ||
) |
Definition at line 82 of file word2vec.cpp.