8e310cd82698fa88108ad51f708dc7cad56a3039,sklearn/neural_network/tests/test_mlp.py,,test_partial_fit_errors,#,425
Before Change
y = [1, 0]
// no classes passed
assert_raises(ValueError,
MLPClassifier(solver="sgd").partial_fit, X, y, classes=[2])
// lbfgs doesn"t support partial_fit
assert not hasattr(MLPClassifier(solver="lbfgs"), "partial_fit")
After Change
y = [1, 0]
// no classes passed
with pytest.raises(ValueError):
MLPClassifier(solver="sgd").partial_fit(X, y, classes=[2])
// lbfgs doesn"t support partial_fit
assert not hasattr(MLPClassifier(solver="lbfgs"), "partial_fit")
@pytest.mark.parametrize(
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 5
Instances
Project Name: scikit-learn/scikit-learn
Commit Name: 8e310cd82698fa88108ad51f708dc7cad56a3039
Time: 2019-09-08
Author: 43701530+sameshl@users.noreply.github.com
File Name: sklearn/neural_network/tests/test_mlp.py
Class Name:
Method Name: test_partial_fit_errors
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_ovo_partial_fit_predict
Project Name: scikit-learn/scikit-learn
Commit Name: 5c246225ddf130f1eee398e889e4c2a19b5f1791
Time: 2021-02-23
Author: lorentzen.ch@gmail.com
File Name: sklearn/tests/test_naive_bayes.py
Class Name:
Method Name: test_gnb
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_partial_fit_exceptions
Project Name: scikit-learn/scikit-learn
Commit Name: 8e310cd82698fa88108ad51f708dc7cad56a3039
Time: 2019-09-08
Author: 43701530+sameshl@users.noreply.github.com
File Name: sklearn/neural_network/tests/test_mlp.py
Class Name:
Method Name: test_partial_fit_classes_error
Project Name: scikit-learn/scikit-learn
Commit Name: dac560551c5767d9a8608f86e3f253e706026189
Time: 2021-02-12
Author: yasmeen.youssef.alsaedi@gmail.com
File Name: sklearn/linear_model/tests/test_passive_aggressive.py
Class Name:
Method Name: test_partial_fit_weight_class_balanced