70372381b6a03b21a8671b4bf8ec4ddfe2004522,autoencoder/baseline/doc_word2vec.py,,doc_word2vec,#,35

Before Change


def doc_word2vec(model, corpus, vocab, output, avg=True):
    doc_codes = {}
    for key in corpus:
        vec = get_doc_codes(model, corpus[key], vocab, avg)
        doc_codes[key] = vec.tolist()
    dump_json(doc_codes, output)

After Change



def doc_word2vec(model, corpus, vocab, output, avg=True):
    doc_codes = {}
    for key, bow in corpus.iteritems():
        vec = get_doc_codes(model, bow, vocab, avg)
        doc_codes[key] = vec.tolist()
    dump_json(doc_codes, output)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: hugochan/KATE
Commit Name: 70372381b6a03b21a8671b4bf8ec4ddfe2004522
Time: 2017-02-09
Author: hugochan2013@gmail.com
File Name: autoencoder/baseline/doc_word2vec.py
Class Name:
Method Name: doc_word2vec


Project Name: hugochan/KATE
Commit Name: 70372381b6a03b21a8671b4bf8ec4ddfe2004522
Time: 2017-02-09
Author: hugochan2013@gmail.com
File Name: autoencoder/baseline/lda.py
Class Name:
Method Name: generate_doc_codes


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: f4838c7408b81ad960c047df5984901927a86d86
Time: 2018-10-26
Author: jcastaldo08@gmail.com
File Name: category_encoders/one_hot.py
Class Name: OneHotEncoder
Method Name: generate_mapping


Project Name: UFAL-DSG/tgen
Commit Name: d54b1ef0718023c0d25c7da3319f0a9a288913ea
Time: 2014-03-31
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/logreg_rank.py
Class Name: LogisticRegressionRanker
Method Name: create_training_data