Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15e18e3

Browse files
Update test_bicluster.py
1 parent c86408c commit 15e18e3

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

sklearn/cluster/tests/test_bicluster.py

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -212,36 +212,11 @@ def test_perfect_checkerboard():
212212
[
213213
({"n_init": 0}, ValueError, "n_init == 0, must be >= 1."),
214214
({"n_init": 1.5}, TypeError, "n_init must be an instance of"),
215-
(
216-
{"n_clusters": (3, 3, 3)},
217-
ValueError,
218-
r"Incorrect parameter n_clusters has value: \(3, 3, 3\)",
219-
),
220-
(
221-
{"n_clusters": (6, 6)},
222-
ValueError,
223-
r"Incorrect parameter n_clusters has value: \(6, 6\)",
224-
),
225215
(
226216
{"n_clusters": "abc"},
227-
ValueError,
217+
TypeError,
228218
"Incorrect parameter n_clusters has value: abc",
229219
),
230-
(
231-
{"n_clusters": (3, "abc")},
232-
ValueError,
233-
r"Incorrect parameter n_clusters has value: \(3, 'abc'\)",
234-
),
235-
(
236-
{"n_clusters": ("abc", 3)},
237-
ValueError,
238-
r"Incorrect parameter n_clusters has value: \('abc', 3\)",
239-
),
240-
(
241-
{"n_clusters": 4, "n_samples": 3},
242-
ValueError,
243-
"n_clusters can not bigger than n_samples: n_clusters == 4, must be <= 3.",
244-
),
245220
({"svd_method": "unknown"}, ValueError, "Unknown SVD method: 'unknown'"),
246221
],
247222
)
@@ -297,11 +272,6 @@ def test_spectalcoclustering_parameter_validation(params, type_err, err_msg):
297272
({"n_best": 0}, ValueError, "n_best == 0, must be >= 1."),
298273
({"n_best": 1.5}, TypeError, "n_best must be an instance of"),
299274
({"svd_method": "unknown"}, ValueError, "Unknown SVD method: 'unknown'"),
300-
(
301-
{"n_clusters": 4, "n_samples": 3},
302-
ValueError,
303-
"n_clusters == 4, must be <= 3.",
304-
),
305275
],
306276
)
307277
def test_spectalbiclustering_parameter_validation(params, type_err, err_msg):

0 commit comments

Comments
 (0)