dcb3adcd36f03b90d0d5ddaf6dcd9347a066e13f,gpytorch/mlls/gamma_robust_variational_elbo.py,GammaRobustVariationalELBO,__init__,#GammaRobustVariationalELBO#Any#Any#Any#,61

Before Change


        if not isinstance(likelihood, _GaussianLikelihoodBase):
            raise RuntimeError("Likelihood must be Gaussian for exact inference")
        super().__init__(likelihood, model, *args, **kwargs)
        self.register_buffer("gamma", torch.tensor(gamma))

    def _log_likelihood_term(self, variational_dist_f, target, *args, **kwargs):
        muf, varf = variational_dist_f.mean, variational_dist_f.variance

After Change


        if not isinstance(likelihood, _GaussianLikelihoodBase):
            raise RuntimeError("Likelihood must be Gaussian for exact inference")
        super().__init__(likelihood, model, *args, **kwargs)
        if gamma <= 1.0:
            raise ValueError("gamma should be > 1.0")
        self.gamma = gamma

    def _log_likelihood_term(self, variational_dist_f, target, *args, **kwargs):
        shifted_gamma = self.gamma - 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: dcb3adcd36f03b90d0d5ddaf6dcd9347a066e13f
Time: 2019-11-10
Author: gpleiss@gmail.com
File Name: gpytorch/mlls/gamma_robust_variational_elbo.py
Class Name: GammaRobustVariationalELBO
Method Name: __init__


Project Name: arraiy/torchgeometry
Commit Name: 6ee3f1b0d2a6ebadc9e2f664354594342ab0805d
Time: 2020-11-21
Author: justanhduc@users.noreply.github.com
File Name: kornia/augmentation/augmentation.py
Class Name: RandomSolarize
Method Name: __init__


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: c17c92d84ec9216b781ecfbc25c6df225e2fd4f1
Time: 2020-11-11
Author: M.N.Tran@ibm.com
File Name: art/defences/preprocessor/audio_filter_pytorch.py
Class Name: AudioFilterPyTorch
Method Name: __call__