@@ -128,11 +128,7 @@ def __test_genie_approx(metric='euclidean'):
128128 print ("" )
129129
130130
131- def test_genie_approx ():
132- __test_genie_approx ('euclidean' )
133- __test_genie_approx ('manhattan' )
134- __test_genie_approx ('cosine' )
135- __test_genie_approx ('maximum' )
131+
136132
137133
138134def __test_sparse (affinity = 'euclidean_sparse' ):
@@ -147,12 +143,7 @@ def __test_sparse(affinity='euclidean_sparse'):
147143 genieclust .Genie (affinity = affinity , exact = False ).fit (X )
148144
149145
150- def test_sparse ():
151- __test_sparse ('euclidean_sparse' )
152- __test_sparse ('manhattan_sparse' )
153- __test_sparse ('cosine_sparse' )
154- __test_sparse ('cosine_sparse_fast' )
155- __test_sparse ('chebyshev_sparse' )
146+
156147
157148
158149def __test_string (affinity = 'leven' ):
@@ -166,6 +157,21 @@ def __test_string(affinity='leven'):
166157 genieclust .Genie (affinity = affinity , exact = False , cast_float32 = False ).fit (X )
167158
168159
160+
161+ def test_genie_approx ():
162+ __test_genie_approx ('euclidean' )
163+ __test_genie_approx ('manhattan' )
164+ __test_genie_approx ('cosine' )
165+ __test_genie_approx ('maximum' )
166+
167+
168+ def test_sparse ():
169+ __test_sparse ('euclidean_sparse' )
170+ __test_sparse ('manhattan_sparse' )
171+ __test_sparse ('cosine_sparse' )
172+ __test_sparse ('cosine_sparse_fast' )
173+ __test_sparse ('chebyshev_sparse' )
174+
169175def test_string ():
170176 __test_string ('leven' )
171177
0 commit comments