Skip to content

Commit

Permalink
Fix BOLFI parallelisation (#481)
Browse files Browse the repository at this point in the history
* copy kernel

* update changelog

* update matplotlib version

---------

Co-authored-by: Henri Pesonen <[email protected]>
  • Loading branch information
uremes and hpesonen authored May 30, 2024
1 parent 40d2479 commit 68a7418
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Changelog
=========

- Use kernel copy to avoid pickle issue and allow BOLFI parallelisation with non-default kernel
- Restrict matplotlib version < 3.9 for compatibility with GPy
- Add option to use additive or multiplicative adjustment in any acquisition method
- Add `arziv`-mocking to rtd-setup
Expand Down
2 changes: 1 addition & 1 deletion elfi/methods/bo/gpy_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def _init_gp(self, x, y):
self._kernel_is_default = True

else:
kernel = self.gp_params.get('kernel')
kernel = self.gp_params.get('kernel').copy()

noise_var = self.gp_params.get('noise_var') or np.max(y)**2. / 100.
mean_function = self.gp_params.get('mean_function')
Expand Down

0 comments on commit 68a7418

Please sign in to comment.