Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Imputer was deprecated in version 0.20 and will be removed in 0.22. Import impute.SimpleImputer from sklearn instead. #430

Closed
fenglixa opened this issue Dec 5, 2019 · 1 comment · Fixed by #431
Labels

Comments

@fenglixa
Copy link
Member

fenglixa commented Dec 5, 2019

/kind bug

What steps did you take and what happened:
[A clear and concise description of what the bug is.]
Following the steps in https://github.com/kubeflow/fairing/tree/master/examples/prediction
Error appeard during import Imputer

sklearn.version
'0.22'
from sklearn.preprocessing import Imputer
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'Imputer' from 'sklearn.preprocessing' (/Users/fengli/go/src/github.com/kubeflow/venv/lib/python3.8/site-packages/sklearn/preprocessing/init.py)

What did you expect to happen:
No Error

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Search from Google, Imputer was deprecated in version 0.20 and will be removed in 0.22. Import impute.SimpleImputer from sklearn instead.

Environment:

  • Fairing version: (use python -c "import kubeflow.fairing; print(kubeflow.fairing.__version__)"):
  • Kubeflow version: (version number can be found at the bottom left corner of the Kubeflow dashboard):
  • Minikube version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):

NOTE: If you are using fair from master, please provide us the git commit hash.

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label kind/bug to this issue, with a confidence of 0.93. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants