1f707906e45e439d8804a0994e7fd6b91243e35f,tslearn/tests/sklearn_patches.py,,check_classifiers_train,#Any#Any#Any#,293
Before Change
with assert_raises(ValueError, msg=error_msg):
classifier.decision_function(X.reshape(-1, 1))
else:
error_msg = msg_pairwise.format(name,
"decision_function")
with assert_raises(ValueError, msg=error_msg):
classifier.decision_function(X.T)
except NotImplementedError:
pass
After Change
else:
with assert_raises(ValueError,
msg=msg.format(name, "predict")):
classifier.predict(X.reshape((-1, 5, 2)))
if hasattr(classifier, "decision_function"):
try:
// decision_function agrees with predict
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: rtavenar/tslearn
Commit Name: 1f707906e45e439d8804a0994e7fd6b91243e35f
Time: 2020-04-27
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/tests/sklearn_patches.py
Class Name:
Method Name: check_classifiers_train
Project Name: tensorflow/tpu
Commit Name: 1f1270f1908e1f0804bf9cfa47f099c8a6cb41fb
Time: 2017-11-09
Author: frankchn@google.com
File Name: cloud_tpu/models/ptb/ptb.py
Class Name:
Method Name: model_fn
Project Name: yahoo/TensorFlowOnSpark
Commit Name: 981e4266d4ea816b08a762193bd52f40cd1a3242
Time: 2019-08-07
Author: leewyang@verizonmedia.com
File Name: examples/mnist/keras/mnist_inference.py
Class Name:
Method Name: inference