488a0e81a89b360d77c6cd3e7948b8e667e87775,imblearn/combine/tests/test_smote_enn.py,,test_error_wrong_object,#,112

Before Change


    assert_raises_regex(ValueError, "smote needs to be a SMOTE",
                        smt.fit_sample, X, Y)
    smt = SMOTEENN(enn=enn, random_state=RND_SEED)
    assert_raises_regex(ValueError, "enn needs to be an ",
                        smt.fit_sample, X, Y)

After Change


    smote = "rnd"
    enn = "rnd"
    smt = SMOTEENN(smote=smote, random_state=RND_SEED)
    with raises(ValueError, match="smote needs to be a SMOTE"):
        smt.fit_sample(X, Y)
    smt = SMOTEENN(enn=enn, random_state=RND_SEED)
    with raises(ValueError, match="enn needs to be an "):
        smt.fit_sample(X, Y)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 488a0e81a89b360d77c6cd3e7948b8e667e87775
Time: 2017-08-24
Author: mailsik@gmail.com
File Name: imblearn/combine/tests/test_smote_enn.py
Class Name:
Method Name: test_error_wrong_object


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 488a0e81a89b360d77c6cd3e7948b8e667e87775
Time: 2017-08-24
Author: mailsik@gmail.com
File Name: imblearn/combine/tests/test_smote_enn.py
Class Name:
Method Name: test_error_wrong_object


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 488a0e81a89b360d77c6cd3e7948b8e667e87775
Time: 2017-08-24
Author: mailsik@gmail.com
File Name: imblearn/over_sampling/tests/test_smote.py
Class Name:
Method Name: test_wrong_nn


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 488a0e81a89b360d77c6cd3e7948b8e667e87775
Time: 2017-08-24
Author: mailsik@gmail.com
File Name: imblearn/combine/tests/test_smote_tomek.py
Class Name:
Method Name: test_error_wrong_object


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 488a0e81a89b360d77c6cd3e7948b8e667e87775
Time: 2017-08-24
Author: mailsik@gmail.com
File Name: imblearn/under_sampling/prototype_selection/tests/test_nearmiss.py
Class Name:
Method Name: test_nm_wrong_nn_obj