aws / aws/sagemaker-scikit-learn-extension

cannot use with scikitlearn >= 0,24,2

Open
#42 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
41
Forks
34
PR merge metrics
No merged PRs in 30d

Description

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 "", line 1, in
File "/home/eric.shaw/.pyenv/versions/39delme/lib/python3.9/site-packages/sagemaker_sklearn_extension/feature_extraction/__init__.py", line 23, in
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
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)
>>>
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.