|
Hi GPJax enthusiasts, Does GPJax support custom kernels where the distance function depends on different locations of the data? For example, GPFlow supports change-points : https://gpflow.github.io/GPflow/develop/notebooks/getting_started/kernels.html This allows custom kernel distances depending on where you are in the data. When I tried to create custom kernels with GPJax, the If the input were two vectors, then you could in principle calculate different distance functions for different parts of the data. But is this easily doable with GPJax? Here is an illustrative example from GPFlow documentation:
EDIT: I tried defining two different pairwise distance that switches depending on whether the pair of points are left, right, or straddle a changepoint x*. I use "if" conditionals to define different regions with distinct covariance functions, e.g.: But I am getting Jake |
Replies: 1 comment 1 reply
|
I fixed the bug. In the end I replaced the series of Jake |

I fixed the bug.
In the end I replaced the series of
ifloops with ajax.lax.switch()and it worked.Jake