9e4c33910fd97aa455b7063e330b51c21b63b963,GPy/kern/_src/stationary.py,Stationary,_gradients_X_cython,#Stationary#,222

Before Change


            X2 = X
        grad = np.zeros_like(X)
        if hasattr(X, "values"):X = X.values //remove the GPy wrapping to make passing into weave safe
        if hasattr(X2, "values"):X2 = X2.values
        stationary_cython.grad_X(X.shape[0], X.shape[1], X2.shape[0], X, X2, tmp, grad)
        return grad/self.lengthscale**2

    def gradients_X_diag(self, dL_dKdiag, X):

After Change


        if X2 is None:
            tmp = tmp + tmp.T
            X2 = X
        X, X2 = np.ascontiguousarray(X), np.ascontiguousarray(X2)
        grad = np.zeros(X.shape)
        stationary_cython.grad_X(X.shape[0], X.shape[1], X2.shape[0], X, X2, tmp, grad)
        return grad/self.lengthscale**2
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: SheffieldML/GPy
Commit Name: 9e4c33910fd97aa455b7063e330b51c21b63b963
Time: 2015-04-28
Author: james.hensman@gmail.com
File Name: GPy/kern/_src/stationary.py
Class Name: Stationary
Method Name: _gradients_X_cython


Project Name: SheffieldML/GPy
Commit Name: e1c2eeb25d5c11ad1b55862b9ea4cc5e55ed7516
Time: 2015-04-28
Author: james.hensman@gmail.com
File Name: GPy/kern/_src/stationary.py
Class Name: Stationary
Method Name: _lengthscale_grads_cython


Project Name: tyarkoni/pliers
Commit Name: af8f451f0df8f93092d50f28c6200a1ba8f99d81
Time: 2017-12-01
Author: delavega@utexas.edu
File Name: pliers/utils/updater.py
Class Name:
Method Name: check_updates