Skip to content

Commit

Permalink
fix: sklearn base import for scikit learn v1.2 (#112)
Browse files Browse the repository at this point in the history
Signed-off-by: Avik Basu <avikbasu93@gmail.com>
  • Loading branch information
ab93 committed Dec 21, 2022
1 parent 64ad0ed commit df20591
Show file tree
Hide file tree
Showing 4 changed files with 853 additions and 891 deletions.
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
Loading

0 comments on commit df20591

Please sign in to comment.