How to fix some dimensions of a kernel lengthscale in gpflow?
问题 I have a 2d kernel, k = gpflow.kernels.RBF(lengthscales=[24*5,1e-5]) m = gpflow.models.GPR(data=(X,Y), kernel=k, mean_function=None) and I want to fix the lengthscale in the 2nd dimension, and just optimise the other. I can disable all lengthscale optimisation using, gpflow.set_trainable(m.kernel.lengthscales, False) but I can't pass just one dimension to this method. In GPy we would call m.kern.lengthscale[1:].fixed() or something. Maybe I could use a transform to roughly achieve this (e.g.