8458abed4da68bdc0a6d0f3ca29def2a53530557,Orange/widgets/classify/tests/test_owadaboostclassification.py,TestOWAdaBoostClassification,test_input_learner,#TestOWAdaBoostClassification#,23
Before Change
self.assertEqual(self.widget.base_estimator.params.get("max_depth"),
max_depth)
self.widget.apply_button.button.click()
output_base_est = self.get_output("Learner").params.get("base_estimator")
self.assertEqual(output_base_est.max_depth, max_depth)
def test_input_learner_that_does_not_support_sample_weights(self):
self.send_signal("Learner", KNNLearner())
After Change
// Reset to none
self.send_signal("Learner", None)
self.assertIsInstance(
self.widget.base_estimator, type(default_base_estimator_cls),
"The base estimator was not reset to default when None on input")
def test_input_learner_that_does_not_support_sample_weights(self):
self.send_signal("Learner", KNNLearner())
self.assertNotIsInstance(self.widget.base_estimator, KNNLearner)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: biolab/orange3
Commit Name: 8458abed4da68bdc0a6d0f3ca29def2a53530557
Time: 2017-01-20
Author: pavlin.g.p@gmail.com
File Name: Orange/widgets/classify/tests/test_owadaboostclassification.py
Class Name: TestOWAdaBoostClassification
Method Name: test_input_learner
Project Name: biolab/orange3
Commit Name: 8458abed4da68bdc0a6d0f3ca29def2a53530557
Time: 2017-01-20
Author: pavlin.g.p@gmail.com
File Name: Orange/widgets/regression/tests/test_owadaboostregression.py
Class Name: TestOWAdaBoostRegression
Method Name: test_input_learner
Project Name: biolab/orange3
Commit Name: 927ebd200257245a2b38e335328aabf728cfba30
Time: 2017-01-20
Author: pavlin.g.p@gmail.com
File Name: Orange/widgets/model/tests/test_owadaboost.py
Class Name: TestOWAdaBoostClassification
Method Name: test_input_learner