Beispiel #1
0
 def test_make_bootstrap_models_raises_on_no_model(self):
     with self.assertRaises(ValueError):
         bs.make_bootstrap_models(2,
                                  self.ds,
                                  'parametric',
                                  self.fiducials,
                                  self.fiducials,
                                  self.germs,
                                  self.maxLengths,
                                  returnData=False)
Beispiel #2
0
 def test_make_bootstrap_models_raises_on_conflicting_model_input(self):
     with self.assertRaises(ValueError):
         bs.make_bootstrap_models(2,
                                  self.ds,
                                  'parametric',
                                  self.fiducials,
                                  self.fiducials,
                                  self.germs,
                                  self.maxLengths,
                                  inputModel=self.mdl,
                                  targetModel=self.mdl,
                                  returnData=False)
Beispiel #3
0
 def test_make_bootstrap_models_nonparametric(self):
     # TODO optimize
     bootgs_np, bootds_np2 = bs.make_bootstrap_models(2,
                                                      self.ds,
                                                      'nonparametric',
                                                      self.fiducials,
                                                      self.fiducials,
                                                      self.germs,
                                                      self.maxLengths,
                                                      targetModel=self.mdl,
                                                      returnData=True)
Beispiel #4
0
 def test_make_bootstrap_models_parametric(self):
     # TODO optimize
     bootgs_p = bs.make_bootstrap_models(2,
                                         self.ds,
                                         'parametric',
                                         self.fiducials,
                                         self.fiducials,
                                         self.germs,
                                         self.maxLengths,
                                         inputModel=self.mdl,
                                         returnData=False)
Beispiel #5
0
 def setUpClass(cls):
     super(BootstrapUtilityTester, cls).setUpClass()
     maxLengths = [0]
     cls.bootgs_p = bs.make_bootstrap_models(2,
                                             cls.ds,
                                             'parametric',
                                             cls.fiducials,
                                             cls.fiducials,
                                             cls.germs,
                                             maxLengths,
                                             inputModel=cls.mdl,
                                             returnData=False)
Beispiel #6
0
 def test_make_bootstrap_models_with_list(self):
     # TODO optimize
     custom_strs = pc.make_lsgst_lists(self.mdl, self.fiducials,
                                       self.fiducials, self.germs, [1])
     bootgs_p_custom = bs.make_bootstrap_models(2,
                                                self.ds,
                                                'parametric',
                                                None,
                                                None,
                                                None,
                                                None,
                                                lsgstLists=custom_strs,
                                                inputModel=self.mdl,
                                                returnData=False)