6ad8b3a6d6e98dda6f83390c6f7935377788d2bc,KAM.py,Kernel,sim,#Kernel#,266
Before Change
N=np.shape(newTFpt)[0]
simVal=np.zeros((N,1))
for i in range(0,N):
simVal[i,:]=float(self.Nhood(newTFpt[i,:]))*self.Wfunc(newTFpt[i,:])
return simVal
After Change
simVal=np.zeros((N1,N2))
for i in range(0,N1):
for j in range(0,N2):
Nhood_ij=self.kNhood(TFcoords1[i,:],TFcoords2[j,:])
Wfunc_ij=self.kWfunc(TFcoords1[i,:],TFcoords2[j,:])
simVal[i,j]=float(Nhood_ij*Wfunc_ij)
return simVal
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: interactiveaudiolab/nussl
Commit Name: 6ad8b3a6d6e98dda6f83390c6f7935377788d2bc
Time: 2015-07-31
Author: fpishdadian@u.northwestern.edu
File Name: KAM.py
Class Name: Kernel
Method Name: sim
Project Name: librosa/librosa
Commit Name: 4d78e7c936be168db70c65276915688a131ef193
Time: 2015-02-17
Author: brian.mcfee@nyu.edu
File Name: librosa/display.py
Class Name:
Method Name: __axis_chroma
Project Name: data61/python-paillier
Commit Name: 96416b889c76f3b6d15af0e3dfd0d4cb2b8b2d23
Time: 2017-06-15
Author: giorgio.patrini@anu.edu.au
File Name: examples/paillier_logistic_regression.py
Class Name: Alice
Method Name: encrypt_weights