Skip to content

Commit

Permalink
Merge pull request #6 from Orange-OpenSource/tests_handle
Browse files Browse the repository at this point in the history
fixes sklearn 1.6 + moves all tests in single directory
  • Loading branch information
pierrenodet authored Dec 12, 2024
2 parents 5ffec8f + ce7ed73 commit d1fbea9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
11 changes: 1 addition & 10 deletions mislabeled/handle/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _trust_score(detector, X, y):


class BaseHandleClassifier(
BaseEstimator, ClassifierMixin, MetaEstimatorMixin, metaclass=ABCMeta
ClassifierMixin, MetaEstimatorMixin, BaseEstimator, metaclass=ABCMeta
):
"""
Parameters
Expand Down Expand Up @@ -147,12 +147,3 @@ def predict_proba(self, X):
def decision_function(self, X):
check_is_fitted(self)
return self.estimator_.decision_function(X)

def _more_tags(self):
return {
"_xfail_checks": {
"check_parameters_default_constructible": (
"no default detector at the moment"
),
},
}
Empty file removed mislabeled/split/tests/__init__.py
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
from mislabeled.detect import ModelProbingDetector
from mislabeled.ensemble import IndependentEnsemble
from mislabeled.split import PerClassSplitter, QuantileSplitter
from mislabeled.tests.utils import blobs_1_mislabeled

from .utils import blobs_1_mislabeled


@pytest.mark.parametrize("n_classes", [2, 5])
Expand Down
File renamed without changes.

0 comments on commit d1fbea9

Please sign in to comment.