bd72f63f3342bc88cd941bbc41547d6513e089ea,scipy/special/tests/test_kolmogorov.py,TestSmirnovi,test_n_equals_1,#TestSmirnovi#,121
Before Change
@pytest.mark.xfail(reason="test fails; smirnovi(1,) is not accurate")
def test_n_equals_1(self):
pp = np.linspace(0, 1, 101, endpoint=True)
dataset = [(1, p, 1-p) for p in pp]
dataset = np.asarray(dataset)
FuncData(smirnovi, dataset, (0, 1), 2, rtol=_rtol).check()
@pytest.mark.xfail(reason="test fails; smirnovi(2,_) is not accurate")
def test_n_equals_2(self):
After Change
def test_n_equals_1(self):
pp = np.linspace(0, 1, 101, endpoint=True)
// dataset = np.array([(1, p, 1-p) for p in pp])
dataset = np.column_stack([[1]*len(pp), pp, 1-pp])
FuncData(smirnovi, dataset, (0, 1), 2, rtol=_rtol).check(dtypes=[int, float, float])
dataset[:, 1] = 1 - dataset[:, 1]
FuncData(smirnovci, dataset, (0, 1), 2, rtol=_rtol).check(dtypes=[int, float, float])
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: scipy/scipy
Commit Name: bd72f63f3342bc88cd941bbc41547d6513e089ea
Time: 2018-08-13
Author: pvanmulbregt@users.noreply.github.com
File Name: scipy/special/tests/test_kolmogorov.py
Class Name: TestSmirnovi
Method Name: test_n_equals_1
Project Name: sentinel-hub/eo-learn
Commit Name: 889cde4a62dbcedbb5856ed3b295b742031074ac
Time: 2019-10-11
Author: jovan.visnjic@sinergise.com
File Name: io/eolearn/io/processing_api.py
Class Name: Sentinelhub16bitInput
Method Name: execute
Project Name: BVLC/caffe
Commit Name: 0db94786a7a463fed49825811fac903f1f1fc3c8
Time: 2014-08-05
Author: shelhamer@imaginarynumber.net
File Name: python/caffe/classifier.py
Class Name: Classifier
Method Name: predict
Project Name: biolab/orange3
Commit Name: 088b10a9b6621472af54635e761bda0dd775836f
Time: 2012-09-26
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/classification/majority.py
Class Name: MajorityLearner
Method Name: __call__