369a0097a17f16fd2a54bbe121e58074dfdf7da3,wordclasses/wctool.py,,main,#,8
Before Change
num_words = 0
num_moves = 0
for word in optimizer.vocabulary:
print(word)
num_words += 1
if optimizer.move_to_best_class(word):
num_moves += 1
print("iteration {}, {} words, {} moves, log likelihood {}".format(
After Change
if args.vocabulary is None:
vocabulary = Vocabulary.from_corpus(args.training_set,
args.num_classes)
args.training_set.seek(0)
else:
vocabulary = Vocabulary.from_file(args.vocabulary,
args.vocabulary_format)
statistics = WordStatistics(args.training_set, vocabulary)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: senarvi/theanolm
Commit Name: 369a0097a17f16fd2a54bbe121e58074dfdf7da3
Time: 2016-04-06
Author: seppo.git@marjaniemi.com
File Name: wordclasses/wctool.py
Class Name:
Method Name: main
Project Name: recipy/recipy
Commit Name: 27aebd9429cd624a0dada25b9685ffc7af444919
Time: 2016-09-22
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/process.py
Class Name:
Method Name: execute_and_capture
Project Name: geekcomputers/Python
Commit Name: 7c977cb5f370d2e8a8ceda762f8d22a3c668e8f0
Time: 2020-03-22
Author: alopex4@163.com
File Name: fileinfo.py
Class Name:
Method Name:
Project Name: autorope/donkeycar
Commit Name: 9ce0e4c2633074278cad3af01e60e925353d3d81
Time: 2016-12-11
Author: wroscoe@gmail.com
File Name: manage.py
Class Name:
Method Name: record