e1c2eeb25d5c11ad1b55862b9ea4cc5e55ed7516,GPy/kern/_src/stationary.py,Stationary,_lengthscale_grads_cython,#Stationary#,187
Before Change
N,M = tmp.shape
Q = X.shape[1]
if hasattr(X, "values"):X = X.values
if hasattr(X2, "values"):X2 = X2.values
grads = np.zeros(self.input_dim)
stationary_cython.lengthscale_grads(N, M, Q, tmp, X, X2, grads)
return -grads/self.lengthscale**3
After Change
def _lengthscale_grads_cython(self, tmp, X, X2):
N,M = tmp.shape
Q = self.input_dim
X, X2 = np.ascontiguousarray(X), np.ascontiguousarray(X2)
grads = np.zeros(self.input_dim)
stationary_cython.lengthscale_grads(N, M, Q, tmp, X, X2, grads)
return -grads/self.lengthscale**3

In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
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: suavecode/SUAVE
Commit Name: e73418dbc43053ccb522e94e9846de1c88667b73
Time: 2017-04-01
Author: ebotero@stanford.edu
File Name: trunk/SUAVE/Components/Energy/Networks/Propulsor_Surrogate.py
Class Name: Propulsor_Surrogate
Method Name: build_surrogate
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: librosa/librosa
Commit Name: b2e82574eb7e7292741ece09ec9eb286e9ea4168
Time: 2020-05-22
Author: bmcfee@users.noreply.github.com
File Name: librosa/util/utils.py
Class Name:
Method Name: frame
Project Name: luispedro/mahotas
Commit Name: 221f2e9dce1ce5828f307909fd6da6cd9452f17c
Time: 2012-08-23
Author: luis@luispedro.org
File Name: mahotas/polygon.py
Class Name:
Method Name: convexhull