b11abe44d9c30b5dd4d53f62f5e6f37b3ad7b319,examples/word_language_model/predict.py,,,#,11

Before Change


learner.initialize()
learner.load_params(args.checkpoint)

words = [corpus.dictionary.idx2word[n] for n in range(10)]

print(words)

After Change


p = net.predict_proba(input_data)
print(p)

widx = net.predict(input_data)
print(widx, [corpus.dictionary.idx2word[n] for n in widx])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dnouri/skorch
Commit Name: b11abe44d9c30b5dd4d53f62f5e6f37b3ad7b319
Time: 2017-11-15
Author: marian.tietz@ottogroup.com
File Name: examples/word_language_model/predict.py
Class Name:
Method Name:


Project Name: IndicoDataSolutions/finetune
Commit Name: 3ce15cf0b1b83503d0a35a0077cb93322c2cc710
Time: 2018-11-13
Author: madison@indico.io
File Name: finetune/base.py
Class Name: BaseModel
Method Name: _inference


Project Name: shubhomoydas/ad_examples
Commit Name: 562508c5edf9988078f3ca4300e1d6be569a4b8f
Time: 2018-04-01
Author: smd.shubhomoydas@gmail.com
File Name: python/timeseries/timeseries_customRNN.py
Class Name: TsRNNCustom
Method Name: train