1454558cb21c575cc433eefc39b86b0f49a98403,gpytorch/likelihoods/noise_models.py,HeteroskedasticNoise,forward,#HeteroskedasticNoise#Any#,44

Before Change


        // note: this also works with MultitaskMultivariateNormal, where this
        // will return a batched DiagLazyTensors of size n x num_tasks x num_tasks
        noise_diag = output.mean.exp() if self.log_scale else output.mean
        return DiagLazyTensor(noise_diag)

After Change


        // note: this also works with MultitaskMultivariateNormal, where this
        // will return a batched DiagLazyTensors of size n x num_tasks x num_tasks
        noise_diag = output.mean if self.noise_indices is None else output.mean[..., self.noise_indices]
        return DiagLazyTensor(noise_diag.exp() if self.log_scale else noise_diag)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: cornellius-gp/gpytorch
Commit Name: ec0083d73dc2994a897dc98ab498027ca082efb9
Time: 2021-01-27
Author: wjm363@nyu.edu
File Name: gpytorch/likelihoods/noise_models.py
Class Name: _HomoskedasticNoiseBase
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: 198493be78000034e4ce36d846bda0a82fd0779f
Time: 2021-01-16
Author: balandat@fb.com
File Name: gpytorch/lazy/diag_lazy_tensor.py
Class Name: DiagLazyTensor
Method Name: sqrt_inv_matmul