Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfolch committed Sep 10, 2024
1 parent 5f27f04 commit e08f2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bofire/strategies/predictives/botorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _predict(self, transformed: pd.DataFrame) -> Tuple[np.ndarray, np.ndarray]:
# observation noise is not implemented for MultiTaskGPSurrogate, has to be treated differently
if self.surrogate_specs.surrogates[0].type == "MultiTaskGPSurrogate":
posterior = self.model.posterior(X=X, observation_noise=False) # type: ignore
likelihood_noise = self.model.likelihood.noise.cpu().detach().numpy()
likelihood_noise = self.model.likelihood.noise.cpu().detach().numpy() # type: ignore
else:
posterior = self.model.posterior(X=X, observation_noise=True) # type: ignore
likelihood_noise = 0
Expand Down

0 comments on commit e08f2e8

Please sign in to comment.