7371fd412b05b167f19e70257916b077636a2acb,wordclasses/wctool.py,,main,#,8
Before Change
iteration = 1
print("Starting optimization.")
while True:
num_moves = optimizer.iterate()
print("Iteration {}: {} moves, log likelihood {}".format(
iteration, num_moves, optimizer.log_likelihood()))
if num_moves == 0:
break
After Change
print("Starting iteration {}.".format(iteration))
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(
iteration, num_words, num_moves, optimizer.log_likelihood()))
if num_moves == 0:
break
iteration += 1
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: senarvi/theanolm
Commit Name: 7371fd412b05b167f19e70257916b077636a2acb
Time: 2016-03-10
Author: seppo.git@marjaniemi.com
File Name: wordclasses/wctool.py
Class Name:
Method Name: main
Project Name: Ambrosys/glyph
Commit Name: f76b988862e07b4dcfae78ff8fa98e2e77fc7f1d
Time: 2017-03-21
Author: mquade@uni-potsdam.de
File Name: examples/symbolic_regression.py
Class Name:
Method Name: main
Project Name: Ambrosys/glyph
Commit Name: f76b988862e07b4dcfae78ff8fa98e2e77fc7f1d
Time: 2017-03-21
Author: mquade@uni-potsdam.de
File Name: examples/nd_example.py
Class Name:
Method Name: main