Skip to content

cannot use with scikitlearn >= 0,24,2 #42

@eric-s-s

Description

@eric-s-s

used poetry to install and it didn't work:

with:

[tool.poetry.dependencies]
python = "^3.9"
scikit-learn = "0.24.2"
numpy = "1.22.0"
pandas = "1.3.0"
sagemaker-scikit-learn-extension = "^2.5.0"
tsfresh = "^0.19.0"

I get the following error when i try

>>> import sagemaker_sklearn_extension.feature_extraction
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/eric.shaw/.pyenv/versions/39delme/lib/python3.9/site-packages/sagemaker_sklearn_extension/feature_extraction/__init__.py", line 23, in <module>
    from . import text
  File "/home/eric.shaw/.pyenv/versions/39delme/lib/python3.9/site-packages/sagemaker_sklearn_extension/feature_extraction/text.py", line 18, in <module>
    from sklearn.feature_extraction.text import VectorizerMixin, TfidfVectorizer
ImportError: cannot import name 'VectorizerMixin' from 'sklearn.feature_extraction.text' (/home/eric.shaw/.pyenv/versions/39delme/lib/python3.9/site-packages/sklearn/feature_extraction/text.py)
>>> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions