Commit 7730074 1 parent 7ca70c8 commit 7730074 Copy full SHA for 7730074
File tree 3 files changed +8
-11
lines changed
3 files changed +8
-11
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
import scipy
4
4
import torch
5
5
from sobolev_alignment import KRRApprox
6
+ from sobolev_alignment .krr_approx import FALKON_IMPORTED
6
7
7
- n_samples = 2000
8
8
n_samples_valid = 50
9
9
n_genes = 100
10
10
n_latent = 7
11
+ n_samples = 2000
11
12
penalization = 0.0001
12
13
pearson_threshold = 0.99
13
14
M = 500
14
15
15
16
16
17
@pytest .fixture (scope = "module" )
17
18
def falkon_import ():
18
- try :
19
- return True
20
- except ImportError :
21
- return False
19
+ return FALKON_IMPORTED
22
20
23
21
24
22
@pytest .fixture (scope = "module" )
@@ -160,6 +158,9 @@ def test_all_sklearn_kernels(self):
160
158
161
159
def test_all_falkon_kernels (self , falkon_import ):
162
160
if falkon_import :
161
+ print (">>>>>>\n \n \n \n " )
162
+ print (falkon_import )
163
+ print ("\n \n \n <<<<<" )
163
164
for kernel in KRRApprox .falkon_kernel :
164
165
KRRApprox (kernel = kernel , method = "falkon" )
165
166
return True
Original file line number Diff line number Diff line change 3
3
import pytest
4
4
from anndata import AnnData
5
5
from sobolev_alignment import SobolevAlignment
6
+ from sobolev_alignment .krr_approx import FALKON_IMPORTED
6
7
7
8
n_samples = 500
8
9
n_samples_valid = 50
15
16
16
17
@pytest .fixture (scope = "module" )
17
18
def falkon_import ():
18
- try :
19
- return True
20
- except ImportError :
21
- return False
19
+ return FALKON_IMPORTED
22
20
23
21
24
22
@pytest .fixture (scope = "module" )
You can’t perform that action at this time.
0 commit comments