It looks like you have the magnitude of each GP twice as you have sigma_alpha
and amplitude
.
See also discussion in Hilbert space Gaussian process for multiple time series
Unfortunately, right now I don’t have time to examine your code in more detail.