From 59b360e813dc5acf9deb44a1f9cf603754adc304 Mon Sep 17 00:00:00 2001 From: Rui Coelho Date: Tue, 16 Apr 2024 18:58:53 +0100 Subject: [PATCH] Fix wrong noisy assignment in BoTorch --- piglot/optimisers/botorch/bayes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piglot/optimisers/botorch/bayes.py b/piglot/optimisers/botorch/bayes.py index 8c4b7cf..e9ddea8 100644 --- a/piglot/optimisers/botorch/bayes.py +++ b/piglot/optimisers/botorch/bayes.py @@ -159,7 +159,7 @@ def __init__( self.n_initial = n_initial self.acquisition = acquisition self.beta = beta - self.noisy = bool(noisy) or objective.stochastic + self.noisy = bool(noisy) self.q = q self.seed = seed self.load_file = load_file @@ -172,7 +172,7 @@ def __init__( self.acquisition = default_acquisition( objective.composition, objective.multi_objective, - self.noisy, + bool(noisy) or objective.stochastic, self.q, ) elif self.acquisition not in AVAILABLE_ACQUISITIONS: