Skip to content

Commit 68a7418

Browse files
uremeshpesonen
andauthoredMay 30, 2024
Fix BOLFI parallelisation (#481)
* copy kernel * update changelog * update matplotlib version --------- Co-authored-by: Henri Pesonen <henri.e.pesonen@gmail.com>
1 parent 40d2479 commit 68a7418

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎CHANGELOG.rst

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Changelog
22
=========
33

4+
- Use kernel copy to avoid pickle issue and allow BOLFI parallelisation with non-default kernel
45
- Restrict matplotlib version < 3.9 for compatibility with GPy
56
- Add option to use additive or multiplicative adjustment in any acquisition method
67
- Add `arziv`-mocking to rtd-setup

‎elfi/methods/bo/gpy_regression.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def _init_gp(self, x, y):
250250
self._kernel_is_default = True
251251

252252
else:
253-
kernel = self.gp_params.get('kernel')
253+
kernel = self.gp_params.get('kernel').copy()
254254

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

0 commit comments

Comments
 (0)
Failed to load comments.