@@ -117,7 +117,7 @@ def score_function_multid_seperate(X,Z,func_out=False, C=0.001,kern ='RBF',l=1,w
117117 """
118118
119119 if kern == 'RBF' :
120-
120+ """
121121 #@numba.njit(parallel=True,fastmath=True)
122122 def Knumba(x,y,l,res,multil=False): #version of kernel in the numba form when the call already includes the output matrix
123123 if multil:
@@ -133,7 +133,7 @@ def Knumba(x,y,l,res,multil=False): #version of kernel in the numba form when th
133133 my_cdist(x, y,tempi,'sqeuclidean') #this sets into the array tempi the cdist result
134134 res = np.exp(-tempi/(2*l*l))
135135 #return 0
136-
136+ """
137137 def K (x ,y ,l ,multil = False ):
138138 if multil :
139139 res = np .ones ((x .shape [0 ],y .shape [0 ]))
@@ -330,7 +330,7 @@ def score_function_multid_seperate_all_dims(X,Z,func_out=False, C=0.001,kern ='R
330330 """
331331
332332 if kern == 'RBF' :
333-
333+ """
334334 #@numba.njit(parallel=True,fastmath=True)
335335 def Knumba(x,y,l,res,multil=False): #version of kernel in the numba form when the call already includes the output matrix
336336 if multil:
@@ -346,6 +346,7 @@ def Knumba(x,y,l,res,multil=False): #version of kernel in the numba form when th
346346 my_cdist(x, y,tempi,'sqeuclidean') #this sets into the array tempi the cdist result
347347 res = np.exp(-tempi/(2*l*l))
348348 return 0
349+ """
349350
350351 def K (x ,y ,l ,multil = False ):
351352 if multil :
@@ -564,7 +565,7 @@ def grdx_K(x,y,l,which_dim=1,multil=False): #gradient with respect to the 1st ar
564565 else :
565566 redifs = np .multiply (diffs [:,:,ii ],K (x ,y ,l ))/ (l * l )
566567 return redifs
567-
568+ """
568569 def grdy_K(x,y): # gradient with respect to the second argument
569570 #N,dim = x.shape
570571 diffs = x[:,None]-y
@@ -581,7 +582,7 @@ def ggrdxy_K(x,y):
581582 for jj in range(which_dim-1,which_dim):
582583 redifs[ii, jj ] = np.multiply(np.multiply(diffs[:,:,ii],diffs[:,:,jj])+(l*l)*(ii==jj),K(x,y))/(l**4)
583584 return -redifs
584-
585+ """
585586 if isinstance (l , (list , tuple , np .ndarray )):
586587 ### for different lengthscales for each dimension
587588 K_xz = K (X ,Z ,l ,multil = True )
0 commit comments