d8151eee6170df7421d70c39d9e7a6513cf89012,GPy/kern/parts/linear.py,Linear,K,#Linear#Any#Any#Any#,68
Before Change
XX2 = X2 * np.sqrt(self.variances)
target += np.dot(XX, XX2.T)
else:
self._K_computations(X, X2)
target += self.variances * self._dot_product
def Kdiag(self, X, target):
np.add(target, np.sum(self.variances * np.square(X), -1), target)
After Change
XX2 = X2 * np.sqrt(self.variances)
target += np.dot(XX, XX2.T)
else:
if X is not self._X or X2 is not None:
self._K_computations(X, X2)
target += self.variances * self._dot_product
def Kdiag(self, X, target):
np.add(target, np.sum(self.variances * np.square(X), -1), target)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: SheffieldML/GPy
Commit Name: d8151eee6170df7421d70c39d9e7a6513cf89012
Time: 2013-10-27
Author: ibinbei@gmail.com
File Name: GPy/kern/parts/linear.py
Class Name: Linear
Method Name: K
Project Name: SheffieldML/GPy
Commit Name: d8151eee6170df7421d70c39d9e7a6513cf89012
Time: 2013-10-27
Author: ibinbei@gmail.com
File Name: GPy/kern/parts/linear.py
Class Name: Linear
Method Name: dK_dtheta
Project Name: SheffieldML/GPy
Commit Name: d8151eee6170df7421d70c39d9e7a6513cf89012
Time: 2013-10-27
Author: ibinbei@gmail.com
File Name: GPy/kern/parts/rbf.py
Class Name: RBF
Method Name: dK_dX
Project Name: SheffieldML/GPy
Commit Name: d8151eee6170df7421d70c39d9e7a6513cf89012
Time: 2013-10-27
Author: ibinbei@gmail.com
File Name: GPy/kern/parts/rbf.py
Class Name: RBF
Method Name: dK_dtheta