488a0e81a89b360d77c6cd3e7948b8e667e87775,imblearn/tests/test_pipeline.py,,test_pipeline_init,#,177
Before Change
assert_raises(TypeError, Pipeline)
// Check that we can"t instantiate pipelines with objects without fit
// method
assert_raises_regex(TypeError,
"Last step of Pipeline should implement fit. "
".*NoFit.*",
Pipeline, [("clf", NoFit())])
// Smoke test with only an estimator
clf = NoTrans()
pipe = Pipeline([("svc", clf)])
expected = dict(svc__a=None, svc__b=None, svc=clf,
After Change
// Check that params are not set when naming them wrong
with raises(ValueError):
pipe.set_params(anova__C=0.1)
// Test clone
pipe2 = clone(pipe)
assert not pipe.named_steps["svc"] is pipe2.named_steps["svc"]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 488a0e81a89b360d77c6cd3e7948b8e667e87775
Time: 2017-08-24
Author: mailsik@gmail.com
File Name: imblearn/tests/test_pipeline.py
Class Name:
Method Name: test_pipeline_init
Project Name: KrishnaswamyLab/PHATE
Commit Name: 305fe8318688be276fefdaab125b1fb92ea62895
Time: 2018-06-21
Author: scottgigante@gmail.com
File Name: Python/phate/test.py
Class Name:
Method Name: test_tree
Project Name: scikit-learn/scikit-learn
Commit Name: 1000d0a61be311542e01d56f6745178307406395
Time: 2021-02-22
Author: alihanz@gmail.com
File Name: sklearn/tests/test_base.py
Class Name:
Method Name: test_get_params
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: a4376fc2e3c1eec67decf36bc0a1771ad17a771e
Time: 2018-04-24
Author: M.N.Tran@ibm.com
File Name: src/attacks/newtonfool_unittest.py
Class Name: TestNewtonFool
Method Name: test_krclassifier