bd53f54fb666459dc54af4de52032a65fca551be,sklearn/tests/test_multiclass.py,,test_ovr_single_label_predict_proba,#,376

Before Change


    assert_almost_equal(Y_proba.sum(axis=1), 1.0)
    // predict assigns a label if the probability that the
    // sample has the label is greater than 0.5.
    pred = np.array([l.argmax() for l in Y_proba])
    assert not (pred - Y_pred).any()


def test_ovr_multilabel_decision_function():

After Change


    assert_almost_equal(Y_proba.sum(axis=1), 1.0)
    // predict assigns a label if the probability that the
    // sample has the label with the greatest predictive probability.
    pred = Y_proba.argmax(axis=1)
    assert not (pred - Y_pred).any()


def test_ovr_multilabel_decision_function():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: scikit-learn/scikit-learn
Commit Name: bd53f54fb666459dc54af4de52032a65fca551be
Time: 2021-03-03
Author: alihanz@gmail.com
File Name: sklearn/tests/test_multiclass.py
Class Name:
Method Name: test_ovr_single_label_predict_proba


Project Name: biolab/orange3
Commit Name: 15688455310d8b6de97ff1c36157cf198bff0e5c
Time: 2014-07-28
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/classification/naive_bayes.py
Class Name: BayesStorageClassifier
Method Name: predict_storage


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: a8d354aa3f1d796ebfcf41586af1eb925f229ecc
Time: 2020-04-01
Author: 17923265+jacobmontiel@users.noreply.github.com
File Name: src/skmultiflow/lazy/knn_classifier.py
Class Name: KNNClassifier
Method Name: predict


Project Name: mapbox/robosat
Commit Name: 4a486c33d7faa7938355658abca7e936022389b0
Time: 2018-10-02
Author: o@courtin.co
File Name: robosat/metrics.py
Class Name: MeanIoU
Method Name: add