Exemple #1
0
 def test_from_BoTorch(self):
     surrogate = Surrogate.from_BoTorch(
         self.botorch_model_class(**self.surrogate_kwargs))
     self.assertIsInstance(surrogate.model, self.botorch_model_class)
     self.assertFalse(surrogate._should_reconstruct)
Exemple #2
0
 def test_from_BoTorch(self):
     surrogate = Surrogate.from_BoTorch(
         self.botorch_model_class(**self.surrogate_kwargs))
     self.assertIsInstance(surrogate.model, self.botorch_model_class)
     self.assertTrue(surrogate._constructed_manually)