71c4ebaf3ecffd66f43a575a010808dae4266b8c,gpytorch/random_variables/gaussian_random_variable.py,GaussianRandomVariable,sample,#GaussianRandomVariable#Any#,41
Before Change
return self._mean, self._covar
def sample(self, n_samples):
raise NotImplementedError
def var(self):
return self._covar.diag()
After Change
return self._mean, self._covar
def sample(self, n_samples):
base_samples = Variable(self._mean.data.new(self._covar.chol_approx_size(), n_samples).normal_())
samples = self._covar.chol_matmul(base_samples)
samples = samples + self._mean.unsqueeze(-1)
return samples
def var(self):
return self._covar.diag()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: cornellius-gp/gpytorch
Commit Name: 71c4ebaf3ecffd66f43a575a010808dae4266b8c
Time: 2017-12-22
Author: gpleiss@gmail.com
File Name: gpytorch/random_variables/gaussian_random_variable.py
Class Name: GaussianRandomVariable
Method Name: sample
Project Name: kymatio/kymatio
Commit Name: 278bc3b0dfa36226d8818809e54f80edf14643a1
Time: 2018-12-14
Author: biboundai@homail.fr
File Name: kymatio/scattering3d/backend/backend_skcuda.py
Class Name:
Method Name: to_complex
Project Name: cornellius-gp/gpytorch
Commit Name: 59d4a8b3bea3b5969f79b45456c8e594b617ce92
Time: 2017-11-13
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/lazy_variable.py
Class Name: LazyVariable
Method Name: add_jitter
Project Name: open-mmlab/mmdetection
Commit Name: b69667001f250a54a37129a000a8d5160e047239
Time: 2019-12-24
Author: erotemic@gmail.com
File Name: mmdet/core/bbox/assigners/approx_max_iou_assigner.py
Class Name: ApproxMaxIoUAssigner
Method Name: assign