Skip to content

Commit

Permalink
Fix bug related to acquisition batch variable (#293)
Browse files Browse the repository at this point in the history
* Fix bug related to acquisition batch variable

* Pruned unnecessary lines of code

Co-authored-by: Henri Pesonen <henri.e.pesonen@gmail.com>
Co-authored-by: Waldir Leoncio <waldir.leoncio@gmail.com>
  • Loading branch information
3 people authored Feb 17, 2020
1 parent d818d1b commit 2f049aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elfi/methods/bo/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,11 @@ def _evaluate_logpdf(theta):
return -np.inf
return np.log(val_pdf)

batch_theta = np.zeros(shape=len(gp.bounds))

# Obtaining the RandMaxVar acquisition.
for i in range(self._limit_faulty_init + 1):
if i > self._limit_faulty_init:
if i == self._limit_faulty_init:
raise SystemExit("Unable to find a suitable initial point.")

# Proposing the initial point.
Expand Down

0 comments on commit 2f049aa

Please sign in to comment.