4b4946f40ef0f8c533f5473ec3756e639e57e5c5,python/baseline/dy/tagger/train.py,TaggerTrainerDyNet,_test,#TaggerTrainerDyNet#Any#,76
Before Change
pg = create_progress_bar(steps)
for batch_dict in ts:
x, xch, lengths, y, ids = self.model.make_input(batch_dict)
pred = self.model.predict((x, xch), lengths)
correct, count, overlaps, golds, guesses = self.process_output(pred, y, lengths, ids, handle, txts)
total_correct += correct
After Change
for batch_dict in ts:
lengths = batch_dict["lengths"]
ids = batch_dict["ids"]
y = batch_dict["y"]
pred = self.model.predict(batch_dict)
correct, count, overlaps, golds, guesses = self.process_output(pred, y, lengths, ids, handle, txts)
total_correct += correct
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: dpressel/mead-baseline
Commit Name: 4b4946f40ef0f8c533f5473ec3756e639e57e5c5
Time: 2018-09-28
Author: dpressel@gmail.com
File Name: python/baseline/dy/tagger/train.py
Class Name: TaggerTrainerDyNet
Method Name: _test
Project Name: dpressel/mead-baseline
Commit Name: 90345f6069723476c534cdf943e962d26c810e56
Time: 2018-05-24
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/classify/train.py
Class Name: ClassifyTrainerPyTorch
Method Name: _test
Project Name: dpressel/mead-baseline
Commit Name: 90345f6069723476c534cdf943e962d26c810e56
Time: 2018-05-24
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/classify/train.py
Class Name: ClassifyTrainerPyTorch
Method Name: _train