copy kernel from gpy regression model gp_params to avoid the pickle issue reported here and allow BOLFI parallelisation also when a non-default kernel is used. fixes #263
How to test:
the pickle error is observed when we sample from a target_model that has a kernel in gp_params and either ipyparallel or multiprocessing client is used. for example the example code provided in #263 results in an error with the current ELFI version but works with the updated version.
Summary:
copy kernel from gpy regression model
gp_params
to avoid the pickle issue reported here and allow BOLFI parallelisation also when a non-default kernel is used. fixes #263How to test:
the pickle error is observed when we sample from a
target_model
that has a kernel ingp_params
and eitheripyparallel
ormultiprocessing
client is used. for example the example code provided in #263 results in an error with the current ELFI version but works with the updated version.Please make sure
If your contribution adds, removes or somehow changes the functional behavior of the package, please check that
make lint
,make docs
andmake test
and the proposed changes pass all unit tests (check step 6 of CONTRIBUTING.rst for details)
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: