Skip to content

Commit

Permalink
fix: fix sklearn base import for scikit learn v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ab93 committed Dec 21, 2022
1 parent 64ad0ed commit e0e2d77
Show file tree
Hide file tree
Showing 3 changed files with 852 additions and 890 deletions.
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

0 comments on commit e0e2d77

Please sign in to comment.