@@ -215,12 +215,12 @@ def test_perfect_checkerboard():
215
215
(
216
216
{"n_clusters" : "abc" },
217
217
TypeError ,
218
- "Incorrect parameter n_clusters has value: abc " ,
218
+ "n_clusters must be an instance of " ,
219
219
),
220
220
({"svd_method" : "unknown" }, ValueError , "Unknown SVD method: 'unknown'" ),
221
221
],
222
222
)
223
- def test_spectalcoclustering_parameter_validation (params , type_err , err_msg ):
223
+ def test_spectralcoclustering_parameter_validation (params , type_err , err_msg ):
224
224
"""Check parameters validation in `SpectralBiClustering`"""
225
225
data = np .arange (25 ).reshape ((5 , 5 ))
226
226
model = SpectralCoclustering (** params )
@@ -232,7 +232,7 @@ def test_spectalcoclustering_parameter_validation(params, type_err, err_msg):
232
232
"params, type_err, err_msg" ,
233
233
[
234
234
({"n_init" : 0 }, ValueError , "n_init == 0, must be >= 1." ),
235
- ({"n_init" : 1.5 }, TypeError , "n_init must be an instance of integer " ),
235
+ ({"n_init" : 1.5 }, TypeError , "n_init must be an instance of" ),
236
236
(
237
237
{"n_clusters" : (3 , 3 , 3 )},
238
238
ValueError ,
@@ -262,7 +262,7 @@ def test_spectalcoclustering_parameter_validation(params, type_err, err_msg):
262
262
({"svd_method" : "unknown" }, ValueError , "Unknown SVD method: 'unknown'" ),
263
263
],
264
264
)
265
- def test_spectalbiclustering_parameter_validation (params , type_err , err_msg ):
265
+ def test_spectralbiclustering_parameter_validation (params , type_err , err_msg ):
266
266
"""Check parameters validation in `SpectralBiClustering`"""
267
267
data = np .arange (25 ).reshape ((5 , 5 ))
268
268
model = SpectralBiclustering (** params )
0 commit comments