89432c6c49689c5c1fd80e80db25562b305b265f,basic/evaluator.py,TempEvaluator,compare,#Any#Any#Any#,187
Before Change
@staticmethod
def compare(yi, ypi, yp2i):
for start, stop in yi:
if tuple(start) == argmax(ypi) and tuple(stop) == argmax(yp2i):
return True
return False
After Change
def compare(yi, ypi, yp2i):
for start, stop in yi:
aypi = argmax(ypi)
mask = np.zeros(yp2i.shape)
mask[aypi[0], aypi[1]:] = np.ones([yp2i.shape[1] - aypi[1]])
if tuple(start) == aypi and (stop[0], stop[1]-1) == argmax(yp2i * mask):
return True
return False
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: wenwei202/iss-rnns
Commit Name: 89432c6c49689c5c1fd80e80db25562b305b265f
Time: 2016-08-30
Author: seominjoon@gmail.com
File Name: basic/evaluator.py
Class Name: TempEvaluator
Method Name: compare
Project Name: keras-team/keras
Commit Name: 002a9d5d2b2c26fff63293e3007ede9ab7dee616
Time: 2015-11-02
Author: makoto.matsuyama@gmx.com
File Name: keras/layers/core.py
Class Name: Merge
Method Name: output_shape
Project Name: kundajelab/dragonn
Commit Name: 9c158b87f5fb2dca1ed95884e667ab2fc218e1b7
Time: 2017-05-01
Author: jisraeli@stanford.edu
File Name: dragonn/models.py
Class Name: SequenceDNN
Method Name: deeplift
Project Name: biolab/orange3
Commit Name: dcebfdb2be6bd16c3faf2fcff8dba4fa7501ecfe
Time: 2015-03-06
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/evaluate/owpredictions.py
Class Name: OWPredictions
Method Name: commit