def test_parameters_unchecked(self):
     """Check learner and model for various values of all parameters
     when properties are not checked
     """
     self.widget.min_samples_split_spin[0].setCheckState(False)
     self.parameters = self.parameters[:1]
     self.parameters.extend([
         DefaultParameterMapping("max_features", "auto"),
         DefaultParameterMapping("random_state", None),
         DefaultParameterMapping("max_depth", None),
         DefaultParameterMapping("min_samples_split", 2),
     ])
     self.test_parameters()
Ejemplo n.º 2
0
 def test_parameters_unchecked(self):
     """Check learner and model for various values of all parameters
     when Iteration limit is not checked
     """
     self.widget.max_iter_spin[0].setCheckState(False)
     self.parameters[-1] = DefaultParameterMapping("max_iter", -1)
     self.test_parameters()
Ejemplo n.º 3
0
 def test_parameters_unchecked(self):
     """Check learner and model for various values of all parameters
     when pruning parameters are not checked
     """
     for cb in self.checks:
         cb.setCheckState(False)
     self.parameters = [DefaultParameterMapping(par.name, val)
                        for par, val in zip(self.parameters, (None, 2, 1))]
     self.test_parameters()
Ejemplo n.º 4
0
 def test_parameters_unchecked(self):
     """Check learner and model for various values of all parameters
     when pruning parameters are not checked
     """
     self.widget.max_depth_spin[0].setCheckState(False)
     self.widget.min_internal_spin[0].setCheckState(False)
     self.widget.min_leaf_spin[0].setCheckState(False)
     for i, val in ((1, None), (2, 2), (3, 1)):
         self.parameters[i] = DefaultParameterMapping(
             self.parameters[i].name, val)
     self.test_parameters()