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

fix: sklearn base import for scikit learn v1.2 #112

Merged
merged 2 commits into from
Dec 21, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ lint: format

# install all dependencies
setup:
poetry install --all-extras
poetry install --with dev --all-extras

# test your application (tests in the tests/ directory)
test:
Expand Down
4 changes: 2 additions & 2 deletions numalogic/preprocess/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import numpy as np
from numpy.typing import ArrayLike
from sklearn.base import BaseEstimator, TransformerMixin, _OneToOneFeatureMixin
from sklearn.base import BaseEstimator, TransformerMixin

LOGGER = logging.getLogger(__name__)


class _DataIndependentTransformers(_OneToOneFeatureMixin, TransformerMixin, BaseEstimator):
class _DataIndependentTransformers(TransformerMixin, BaseEstimator):
def fit(self, _: ArrayLike):
return self

Expand Down