SNAP Library 6.0, User Reference
2020-12-09 16:24:20
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, const int &Dimensions, TVVec< TFlt, int64 > &SynNeg) |
void | InitPosEmb (TIntV &Vocab, const int &Dimensions, TRnd &Rnd, TVVec< TFlt, int64 > &SynPos) |
void | TrainModel (TVVec< TInt, int64 > &WalksVV, const int &Dimensions, const int &WinSize, const int &Iter, const 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, const int &Dimensions, const int &WinSize, const int &Iter, const bool &Verbose, TIntFltVH &EmbeddingsHV) |
Learns embeddings using SGD, Skip-gram with negative sampling. More... | |
Definition at line 73 of file word2vec.cpp.
void InitPosEmb | ( | TIntV & | Vocab, |
const int & | Dimensions, | ||
TRnd & | Rnd, | ||
TVVec< TFlt, int64 > & | SynPos | ||
) |
Definition at line 83 of file word2vec.cpp.
Definition at line 18 of file word2vec.cpp.
void LearnEmbeddings | ( | TVVec< TInt, int64 > & | WalksVV, |
const int & | Dimensions, | ||
const int & | WinSize, | ||
const int & | Iter, | ||
const bool & | Verbose, | ||
TIntFltVH & | EmbeddingsHV | ||
) |
Learns embeddings using SGD, Skip-gram with negative sampling.
Definition at line 160 of file word2vec.cpp.
Definition at line 8 of file word2vec.cpp.
Definition at line 66 of file word2vec.cpp.
void TrainModel | ( | TVVec< TInt, int64 > & | WalksVV, |
const int & | Dimensions, | ||
const int & | WinSize, | ||
const int & | Iter, | ||
const 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 92 of file word2vec.cpp.