Skip to content

Commit 4764e35

Browse files
Update score_function_estimators.py
1 parent 263109b commit 4764e35

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

DeterministicParticleFlowControl/score_estimators/score_function_estimators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def K(x,y,l,multil=False):
207207
res = np.multiply(res, np.exp(- 2* (np.sin(cdist(x[:,ii].reshape(-1,1), y[:,ii].reshape(-1,1),'minkowski', p=1)/ 2 )**2) /(l[ii]*l[ii])) )
208208
return -res
209209
else:
210-
tempi = np.zeros((x.shape[0], y.shape[0] ))
210+
#tempi = np.zeros((x.shape[0], y.shape[0] ))
211211
##puts into tempi the cdist result
212212
#my_cdist(x, y, tempi,'l1')
213213
#res = np.exp(-2* ( np.sin( tempi / 2 )**2 ) /(l*l) )
@@ -373,8 +373,8 @@ def grdx_K_all(x,y,l,multil=False): #gradient with respect to the 1st argument -
373373

374374

375375
def grdx_K(x,y,l,which_dim=1,multil=False): #gradient with respect to the 1st argument - only which_dim
376-
N,dim = x.shape
377-
M,_ = y.shape
376+
#_,dim = x.shape
377+
#M,_ = y.shape
378378
diffs = x[:,None]-y
379379
#redifs = np.zeros((1*N,M))
380380
ii = which_dim -1

0 commit comments

Comments
 (0)