EmuKit / emukit

A Python-based toolbox of various methods in decision making, uncertainty quantification and statistical emulation: multi-fidelity, experimental design, Bayesian optimisation, Bayesian quadrature, etc.
https://emukit.github.io/emukit/
Apache License 2.0
605 stars 128 forks source link

`QuadratureProductKernel` base class #419

Closed mmahsereci closed 2 years ago

mmahsereci commented 2 years ago

Issue #, if available:

Description of changes:

There are several product quadrature kernels in the library which follow a similar structure. Hence code was dublicated. This PR introduces a QuadratureProductKernel base class which gets rid of the duplicted code. No functional changes. It might be possible to do all this prettier, but it's better than before.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.