f1ad6b643c926ae493f223c48fc6029137324a50,gensim/models/doc2vec.py,,infer_vector_dbow,#Any#Any#Any#Any#Any#,123
Before Change
neg_labels = []
if model.negative:
// precompute negative labels
neg_labels = zeros(model.negative + 1)
neg_labels[0] = 1.0
vector = model.seeded_vector(" ".join(document))
sentence = next(model._prepare_sentences([LabeledSentence(document,[])]))[0]
After Change
No cythonized alternative yet.
if not hasattr(model, "neg_labels"):
model.pretrain()
vector = model.seeded_vector(" ".join(document))
sentence = next(model._prepare_sentences([LabeledSentence(document, [])]))[0]
for i in range(steps):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: RaRe-Technologies/gensim
Commit Name: f1ad6b643c926ae493f223c48fc6029137324a50
Time: 2015-06-10
Author: gojogit@gmail.com
File Name: gensim/models/doc2vec.py
Class Name:
Method Name: infer_vector_dbow
Project Name: RaRe-Technologies/gensim
Commit Name: f1ad6b643c926ae493f223c48fc6029137324a50
Time: 2015-06-10
Author: gojogit@gmail.com
File Name: gensim/models/doc2vec.py
Class Name:
Method Name: infer_vector_dm
Project Name: tristandeleu/pytorch-maml-rl
Commit Name: 01b8f6eef41c36f12019adfc23ace2a100d77610
Time: 2019-11-24
Author: tristan.deleu@gmail.com
File Name: maml_rl/envs/sync_vector_env.py
Class Name: SyncVectorEnv
Method Name: __init__