fbc57241b529ce921d664d86685935c4d3219feb,gpytorch/likelihoods/noise_models.py,HomoskedasticNoise,forward,#HomoskedasticNoise#Any#,18

Before Change


        log_noise = self.log_noise
        p = params[0] if isinstance(params, list) else params
        n = p.shape[-2] if len(p.shape) > 1 else p.shape[-1]
        log_noise_diag = log_noise.repeat(n, 1)
        return DiagLazyTensor(log_noise_diag)


class MultitaskHomoskedasticNoise(HomoskedasticNoise):

After Change


        if log_noise.ndimension() > len(shape):
            raise RuntimeError("Must provide batched input if in batch mode")
        if log_noise.shape[-1] > 1:  // deal with multi-task case
            shape = shape + torch.Size([log_noise.shape[-1]])
        log_noise_diag = log_noise.expand(shape)
        return DiagLazyTensor(log_noise_diag)


class MultitaskHomoskedasticNoise(HomoskedasticNoise):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: fbc57241b529ce921d664d86685935c4d3219feb
Time: 2018-11-05
Author: balandat@fb.com
File Name: gpytorch/likelihoods/noise_models.py
Class Name: HomoskedasticNoise
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: cea478600970228f6b8dd12b067facde3d5d261f
Time: 2019-05-08
Author: balandat@fb.com
File Name: gpytorch/models/exact_gp.py
Class Name: ExactGP
Method Name: get_fantasy_model


Project Name: cornellius-gp/gpytorch
Commit Name: aaf2dd66651d04bb8a615ec288155aa28d064abb
Time: 2019-10-24
Author: darbour26@gmail.com
File Name: gpytorch/kernels/index_kernel.py
Class Name: IndexKernel
Method Name: forward


Project Name: maciejkula/spotlight
Commit Name: 03b9fd1e3b63c09ec2ef88f5da176af7b275f246
Time: 2017-09-28
Author: maciej.kula@gmail.com
File Name: spotlight/sequence/implicit.py
Class Name: ImplicitSequenceModel
Method Name: predict