8458abed4da68bdc0a6d0f3ca29def2a53530557,Orange/widgets/classify/tests/test_owadaboostclassification.py,TestOWAdaBoostClassification,test_input_learner,#TestOWAdaBoostClassification#,23
Before Change
self.send_signal("Learner", SklTreeLearner(max_depth=max_depth))
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):
After Change
// Try a valid learner
self.send_signal("Learner", RandomForestLearner())
self.assertIsInstance(
self.widget.base_estimator, RandomForestLearner,
"The base estimator was not updated when valid learner on input")
// Reset to none
self.send_signal("Learner", None)
self.assertIsInstance(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: 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
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