Clarify that initialize_from_data_empspect assumes evenly spaced inputs
I added two sentences indicating how to deal with unevenly spaced observations in the SM kernel
@@ -158,7 +158,8 @@ class SpectralMixtureKernel(Kernel):
def initialize_from_data_empspect(self, train_x: torch.Tensor, train_y: torch.Tensor):
"""
Initialize mixture components based on the empirical spectrum of the data.
- This will often be better than the standard initialize_from_data method.
+ This will often be better than the standard initialize_from_data method, but it assumes
+ that your inputs are evenly spaced.
:param torch.Tensor train_x: Training inputs
:param torch.Tensor train_y: Training outputs
@@ -216,7 +217,8 @@ class SpectralMixtureKernel(Kernel):
def initialize_from_data(self, train_x: torch.Tensor, train_y: torch.Tensor, **kwargs):
"""
- Initialize mixture components based on batch statistics of the data.
+ Initialize mixture components based on batch statistics of the data. You should use
+ this initialization routine if your observations are not evenly spaced.
:param torch.Tensor train_x: Training inputs
:param torch.Tensor train_y: Training outputs
