00d47eb3923d8722f75d56ba15139ad6821e2f50,basic/evaluator.py,AccuracyEvaluator2,compare,#Any#Any#,132
Before Change
class AccuracyEvaluator2(AccuracyEvaluator):
@staticmethod
def compare(yi, ypi):
i = int(np.argmax(yi.flatten()))
j = int(np.argmax(ypi.flatten()))
// print(i, j, i == j)
return i == j
class TempEvaluation(AccuracyEvaluation):
def __init__(self, data_type, global_step, idxs, yp, yp2, y, y2, correct, loss, f1s):
After Change
sent_start = int(np.argmax(ypi[para_start]))
if tuple(start) == (para_start, sent_start):
return True
return False
class TempEvaluation(AccuracyEvaluation):
def __init__(self, data_type, global_step, idxs, yp, yp2, y, y2, correct, loss, f1s):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: wenwei202/iss-rnns
Commit Name: 00d47eb3923d8722f75d56ba15139ad6821e2f50
Time: 2016-08-29
Author: seominjoon@gmail.com
File Name: basic/evaluator.py
Class Name: AccuracyEvaluator2
Method Name: compare
Project Name: SINGROUP/dscribe
Commit Name: ef199d3c5d600722a4b292c498124241fa856ca2
Time: 2017-06-06
Author: lauri.himanen@aalto.fi
File Name: describe/descriptors/sinematrix.py
Class Name: SineMatrix
Method Name: create
Project Name: senarvi/theanolm
Commit Name: a636431f9374bb9ae6e3a8107549bf20f91cdb1b
Time: 2016-11-20
Author: seppo.git@marjaniemi.com
File Name: theanolm/network/samplingoutputlayer.py
Class Name: SamplingOutputLayer
Method Name: _get_target_preact
Project Name: automl/auto-sklearn
Commit Name: 84dd314904ba2004ab35bbea65c5f2cb684e073c
Time: 2016-02-24
Author: a.domashnev@gmail.com
File Name: autosklearn/estimators.py
Class Name: AutoSklearnClassifier
Method Name: predict