8000 ENH Enables common test for bicluster (#19542) · scikit-learn/scikit-learn@94abe05 · GitHub
[go: up one dir, main page]

Skip to content

Commit 94abe05

Browse files
authored
ENH Enables common test for bicluster (#19542)
1 parent 139d751 commit 94abe05

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

sklearn/cluster/_bicluster.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,19 @@ def _k_means(self, data, n_clusters):
178178
labels = model.labels_
179179
return centroid, labels
180180

181+
def _more_tags(self):
182+
return {
183+
"_xfail_checks": {
184+
"check_estimators_dtypes": "raises nan error",
185+
"check_fit2d_1sample": "_scale_normalize fails",
186+
"check_fit2d_1feature": "raises apply_along_axis error",
187+
"check_estimator_sparse_data": "does not fail gracefully",
188+
"check_methods_subset_invariance": "empty array passed inside",
189+
"check_dont_overwrite_parameters": "empty array passed inside",
190+
"check_fit2d_predict1d": "emptry array passed inside",
191+
}
192+
}
193+
181194

182195
class SpectralCoclustering(BaseSpectral):
183196
"""Spectral Co-Clustering algorithm (Dhillon, 2001).

sklearn/tests/test_common.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from sklearn.utils.estimator_checks import check_estimator
2424

2525
import sklearn
26-
from sklearn.base import BiclusterMixin
2726

2827
from sklearn.decomposition import PCA
2928
from sklearn.linear_model._base import LinearClassifierMixin
6361
@@ -73,8 +72,6 @@ def test_get_check_estimator_ids(val, expected):
7372

7473
def _tested_estimators():
7574
for name, Estimator in all_estimators():
76-
if issubclass(Estimator, BiclusterMixin):
77-
continue
7875
try:
7976
estimator = _construct_instance(Estimator)
8077
except SkipTest:

0 commit comments

Comments
 (0)
0