57763571ee5d8c4414dc57fec6f151bfe8d13995,gpytorch/kernels/spectral_mixture_kernel.py,SpectralMixtureKernel,initialize,#SpectralMixtureKernel#Any#Any#,43

Before Change



        train_x_sort = train_x.sort(1)[0]
        max_dist = train_x_sort[:, -1, :] - train_x_sort[:, 0, :]
        min_dist = torch.min(train_x_sort[:, 1:, :] - train_x_sort[:, :-1, :], 1)[0]

        // Inverse of lengthscales should be drawn from truncated Gaussian | N(0, max_dist^2) |
        self.log_mixture_scales.data.normal_().mul_(max_dist).abs_().pow_(-1).log_()

After Change



    def initialize(self, train_x, train_y, **kwargs):
        
        _, n_dims = train_x.size()
        
        if not n_dims == self.n_dims:
            raise RuntimeError(
                "The number of dimensions doesn"t match what was supplied!"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 57763571ee5d8c4414dc57fec6f151bfe8d13995
Time: 2018-04-03
Author: srikanth.gadicherla@aalto.fi
File Name: gpytorch/kernels/spectral_mixture_kernel.py
Class Name: SpectralMixtureKernel
Method Name: initialize


Project Name: jonas-koehler/s2cnn
Commit Name: 6dc79d867cea8e9ed4737d7449ad9481fd6492d2
Time: 2018-08-07
Author: geiger.mario@gmail.com
File Name: s2cnn/soft/so3_fft.py
Class Name:
Method Name: _so3_fft


Project Name: jonas-koehler/s2cnn
Commit Name: 6dc79d867cea8e9ed4737d7449ad9481fd6492d2
Time: 2018-08-07
Author: geiger.mario@gmail.com
File Name: s2cnn/soft/so3_fft.py
Class Name:
Method Name: _so3_rfft