Ejemplo n.º 1
0
 def test_validation(self):
     param_range = [3, 4]
     train_scores, test_scores = compute_validation_curve(
         self.sbrl_inst,
         n_folds=2,
         x=self.input_data,
         y=self.y,
         param_name="rule_minlen",
         param_range=param_range)
     self.assertEquals(train_scores.shape[0], 2)
     self.assertEquals(test_scores.shape[0], 2)
Ejemplo n.º 2
0
 def test_validation(self):
     param_range = [3, 4]
     train_scores, test_scores = compute_validation_curve(self.sbrl_inst, n_folds=2, x=self.input_data, y=self.y,
                                                          param_name="rule_minlen", param_range=param_range)
     self.assertEquals(train_scores.shape[0], 2)
     self.assertEquals(test_scores.shape[0], 2)