e91a752ee0c7a903af2fa85aa558222eed15d549,Orange/widgets/regression/tests/test_owrandomforestregression.py,TestOWRandomForestRegression,setUp,#TestOWRandomForestRegression#,10
Before Change
n_est_spin = self.widget.n_estimators_spin
max_f_spin = self.widget.max_features_spin[1]
rs_spin = self.widget.random_state_spin[1]
max_d_spin = self.widget.max_depth_spin[1]
min_s_spin = self.widget.min_samples_split_spin[1]
n_est_min_max = [n_est_spin.minimum() * 10, n_est_spin.minimum()]
min_s_min_max = [min_s_spin.minimum(), min_s_spin.maximum()]
self.gui_to_params = [
GuiToParam("n_estimators", n_est_spin, lambda x: x.value(),
lambda i, x: x.setValue(i), n_est_min_max, n_est_min_max),
GuiToParam("max_features", max_f_spin, lambda x: "auto",
lambda i, x: x.setValue(i), ["auto"], [0]),
GuiToParam("random_state", rs_spin, lambda x: None,
lambda i, x: x.setValue(i), [None], [0]),
GuiToParam("max_depth", max_d_spin, lambda x: None,
lambda i, x: x.setValue(i), [None], [0]),
GuiToParam("min_samples_split", min_s_spin, lambda x: x.value(),
lambda i, x: x.setValue(i), min_s_min_max, min_s_min_max)]
def test_parameters_checked(self):
Check learner and model for various values of all parameters
when all properties are checked
After Change
self.init()
nest_spin = self.widget.n_estimators_spin
nest_min_max = [nest_spin.minimum() * 10, nest_spin.minimum()]
self.parameters = [
ParameterMapping("n_estimators", nest_spin, nest_min_max),
ParameterMapping("min_samples_split",
self.widget.min_samples_split_spin[1])]
def test_parameters_checked(self):
Check learner and model for various values of all parameters
when all properties are checked
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances
Project Name: biolab/orange3
Commit Name: e91a752ee0c7a903af2fa85aa558222eed15d549
Time: 2016-08-05
Author: tankovesna@hotmail.com
File Name: Orange/widgets/regression/tests/test_owrandomforestregression.py
Class Name: TestOWRandomForestRegression
Method Name: setUp
Project Name: biolab/orange3
Commit Name: e91a752ee0c7a903af2fa85aa558222eed15d549
Time: 2016-08-05
Author: tankovesna@hotmail.com
File Name: Orange/widgets/regression/tests/test_owrandomforestregression.py
Class Name: TestOWRandomForestRegression
Method Name: test_parameters_checked
Project Name: biolab/orange3
Commit Name: e91a752ee0c7a903af2fa85aa558222eed15d549
Time: 2016-08-05
Author: tankovesna@hotmail.com
File Name: Orange/widgets/classify/tests/test_owrandomforest.py
Class Name: TestOWRandomForest
Method Name: setUp
Project Name: biolab/orange3
Commit Name: e91a752ee0c7a903af2fa85aa558222eed15d549
Time: 2016-08-05
Author: tankovesna@hotmail.com
File Name: Orange/widgets/classify/tests/test_owrandomforest.py
Class Name: TestOWRandomForest
Method Name: test_parameters_checked