#NEWLINE# def test_kernel_ridge_csc( ) : #NEWLINE# #INDENT# pred = Ridge ( alpha = 1 , fit_intercept = False , solver = 'cholesky' ) . fit ( Xcsc , y ) . predict ( Xcsc ) #NEWLINE# pred2 = KernelRidge ( kernel = 'linear' , alpha = 1 ) . fit ( Xcsc , y ) . predict ( Xcsc ) #NEWLINE# assert_array_almost_equal ( pred2 , pred2 )