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)
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)