1c116807ce1e925f73c87c34e586520d455682d6,sklearn/preprocessing/tests/test_label.py,,test_label_binarize_multilabel,#,559

Before Change


        check_binarized_results(y, classes, pos_label, neg_label,
                                expected)

    assert_raises(ValueError, label_binarize, y, classes, neg_label=-1,
                  pos_label=pos_label, sparse_output=True)


def test_invalid_input_label_binarize():
    assert_raises(ValueError, label_binarize, [0, 2], classes=[0, 2],

After Change


        check_binarized_results(y, classes, pos_label, neg_label,
                                expected)

    with pytest.raises(ValueError):
        label_binarize(y, classes, neg_label=-1, pos_label=pos_label,
                       sparse_output=True)


def test_invalid_input_label_binarize():
    with pytest.raises(ValueError):
        label_binarize([0, 2], classes=[0, 2], pos_label=0, neg_label=1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scikit-learn/scikit-learn
Commit Name: 1c116807ce1e925f73c87c34e586520d455682d6
Time: 2019-08-29
Author: 43701530+sameshl@users.noreply.github.com
File Name: sklearn/preprocessing/tests/test_label.py
Class Name:
Method Name: test_label_binarize_multilabel


Project Name: scikit-learn/scikit-learn
Commit Name: 1c116807ce1e925f73c87c34e586520d455682d6
Time: 2019-08-29
Author: 43701530+sameshl@users.noreply.github.com
File Name: sklearn/preprocessing/tests/test_label.py
Class Name:
Method Name: test_label_binarizer_errors


Project Name: scikit-learn/scikit-learn
Commit Name: 1c116807ce1e925f73c87c34e586520d455682d6
Time: 2019-08-29
Author: 43701530+sameshl@users.noreply.github.com
File Name: sklearn/preprocessing/tests/test_label.py
Class Name:
Method Name: test_label_binarize_multiclass