@@ -289,8 +289,9 @@ def enet_coordinate_descent(np.ndarray[DOUBLE, ndim=1] w,
289289@ cython.cdivision (True )
290290def sparse_enet_coordinate_descent (double[:] w ,
291291 double alpha , double beta ,
292- double[:] X_data , int[:] X_indices ,
293- int[:] X_indptr , double[:] y ,
292+ np.ndarray[double , ndim = 1 ] X_data,
293+ np.ndarray[int , ndim = 1 ] X_indices,
294+ np.ndarray[int , ndim = 1 ] X_indptr, np.ndarray[double , ndim = 1 ] y,
294295 double[:] X_mean , int max_iter ,
295296 double tol , object rng , bint random = 0 ,
296297 bint positive = 0 ):
@@ -487,7 +488,9 @@ def sparse_enet_coordinate_descent(double[:] w,
487488@ cython.wraparound (False )
488489@ cython.cdivision (True )
489490def enet_coordinate_descent_gram (double[:] w , double alpha , double beta ,
490- double[:, :] Q , double[:] q , double[:] y ,
491+ np.ndarray[double , ndim = 2 ] Q,
492+ np.ndarray[double , ndim = 1 ] q,
493+ np.ndarray[double , ndim = 1 ] y,
491494 int max_iter , double tol , object rng ,
492495 bint random = 0 , bint positive = 0 ):
493496 """ Cython version of the coordinate descent algorithm
@@ -628,8 +631,8 @@ def enet_coordinate_descent_gram(double[:] w, double alpha, double beta,
628631@ cython.wraparound (False )
629632@ cython.cdivision (True )
630633def enet_coordinate_descent_multi_task (double[::1, :] W , double l1_reg ,
631- double l2_reg , double[::1, : ] X ,
632- double[:, : ] Y , int max_iter ,
634+ double l2_reg , np.ndarray[ double , ndim = 2 ] X,
635+ np.ndarray[ double , ndim = 2 ] Y, int max_iter ,
633636 double tol , object rng ,
634637 bint random = 0 ):
635638 """ Cython version of the coordinate descent algorithm
0 commit comments