Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes sklearn 1.6 + moves all tests in single directory #6

Merged
merged 3 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading