e82c5a5ad0873d0ac8bf824b603f163ee5ac18ef,examples/word_language_model/train.py,Trainer,score,#Trainer#Any#Any#,56
Before Change
return self.get_loss(output_flat, y)
def score(self, X, y):
import pdb; pdb.set_trace()
corpus = data.Corpus("./data/penn")
ntokens = len(corpus.dictionary)
bptt = 10
After Change
//return f1_score(y, pred)
iterator = self.get_iterator(X, y, train=False)
y_probas = []
y_target = []
for x, y in iterator:
y_probas.append(self.evaluation_step(x))
y_target.append(y)
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances
Project Name: dnouri/skorch
Commit Name: e82c5a5ad0873d0ac8bf824b603f163ee5ac18ef
Time: 2017-07-24
Author: marian.tietz@ottogroup.com
File Name: examples/word_language_model/train.py
Class Name: Trainer
Method Name: score
Project Name: kbardool/keras-frcnn
Commit Name: c6e4eaf7ad9a27a9c91d29f02048b1e6b1a8b657
Time: 2017-02-13
Author: yannhenon@gmail.com
File Name: keras_frcnn/data_generators.py
Class Name:
Method Name: calcY
Project Name: NifTK/NiftyNet
Commit Name: eeb1ac0da37e40b121be49fd7c47f75c3247bb40
Time: 2017-08-28
Author: wenqi.li@ucl.ac.uk
File Name: tests/application_driver_test.py
Class Name: ApplicationDriverTest
Method Name: test_multi_device_inputs
Project Name: AlexsLemonade/refinebio
Commit Name: 7f074b1f9d933514311a63af495de1f06e5ca161
Time: 2018-06-07
Author: miserlou@gmail.com
File Name: workers/data_refinery_workers/processors/no_op.py
Class Name:
Method Name: _convert_genes
Project Name: okfn-brasil/serenata-de-amor
Commit Name: cecf397e2bc8a22e0fe20fcad26151e9666e2bb3
Time: 2016-11-25
Author: filipelinhares@outlook.com
File Name: src/fetch_yelp_info.py
Class Name:
Method Name:
Project Name: NifTK/NiftyNet
Commit Name: fd8ca0c975e380dfcd7239408258b5852be33f06
Time: 2017-08-12
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/sampler_grid.py
Class Name: GridSampler
Method Name: layer_op