d2d7d67ada88e7a43f4f84757a250bf09856d5a2,pymc3/gp/gp.py,MarginalSparse,__add__,#MarginalSparse#Any#,247
Before Change
super(MarginalSparse, self).__init__(cov_func, mean_func)
def __add__(self, other):
raise NotImplementedError("Additive Latent GP"s not implemented")
def kmeans_inducing_points(self, n_inducing, X):
from scipy.cluster.vq import kmeans
// first whiten X
After Change
def __add__(self, other):
// new_gp will default to FITC approx
new_gp = super (MarginalSparse, self).__add__(other)
// make sure new gp has correct approx
if not self.approx == other.approx:
raise ValueError("Cant add GPs with different approximations")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: pymc-devs/pymc3
Commit Name: d2d7d67ada88e7a43f4f84757a250bf09856d5a2
Time: 2017-08-03
Author: w.j.engels@gmail.com
File Name: pymc3/gp/gp.py
Class Name: MarginalSparse
Method Name: __add__
Project Name: matplotlib/matplotlib
Commit Name: 921e945d6f1f33897692379a2ad2ed2b9f1a3ef1
Time: 2021-01-17
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/transforms.py
Class Name: TransformNode
Method Name: __copy__
Project Name: Theano/Theano
Commit Name: 28d8dc103cbf65cb072eb7ed5763fc60b3142559
Time: 2017-03-07
Author: matthew.m.graham@gmail.com
File Name: theano/scalar/basic_scipy.py
Class Name: J1
Method Name: grad
Project Name: Theano/Theano
Commit Name: 28d8dc103cbf65cb072eb7ed5763fc60b3142559
Time: 2017-03-07
Author: matthew.m.graham@gmail.com
File Name: theano/scalar/basic_scipy.py
Class Name: I1
Method Name: grad