Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JonathanRaiman/PVDM
/ functions
Functions
12 in github.com/JonathanRaiman/PVDM
⨍
Functions
12
◇
Types & classes
2
↓ 2 callers
Method
build_paragraph_vocab
(self, sentences)
pv_dm.py:296
↓ 2 callers
Method
reset_weights
(self)
pv_dm.py:148
↓ 2 callers
Method
train
Update the model's neural weights from a sequence of sentences (can be a once-only generator stream). Each sentence must be a list of utf8 string
pv_dm.py:216
↓ 1 callers
Method
build_vocab
Build vocabulary from a sequence of sentences (can be a once-only generator stream). Each sentence must be a list of utf8 strings.
pv_dm.py:355
↓ 1 callers
Method
create_job
(self, sentence, vocab)
pv_dm.py:293
↓ 1 callers
Method
init_sims
Precompute L2-normalized vectors. If `replace` is set, forget the original vectors and only keep the normalized ones = saves lots of memory!
pv_dm.py:155
Method
__init__
(self)
pv_dm.py:24
Method
__init__
PVDM model for training and learning context paragraphs for sentiment and topic analysis, or information retrieval. This method uses hierarch
pv_dm.py:29
Method
fit
Train using SGD with varying batchsizes the PV-DM machine to learn paragraph representations. Inputs ------ sentences: the corpus to lear
pv_dm.py:316
Method
most_similar_paragraph
Find the top-N most similar paragraphs.
pv_dm.py:177
Method
reintroduce_multi_word_windows
(self)
pv_dm.py:109
Method
worker_train
Train the model, lifting lists of sentences from the jobs queue.
pv_dm.py:236