Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix import error message for sklearn #608

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bingwork
Copy link

for sklearn, if needing install it, the ImportError should write "pip install scikit-learn" instead of "pip install sklearn"
now:
File "/home/ubuntu/wubing/evaluate/src/evaluate/loading.py", line 265, in _download_additional_modules
raise ImportError(
ImportError: To be able to use evaluate-metric/accuracy, you need to install the following dependencies['sklearn'] using 'pip install scikit-learn' for instance'

before:
File "/home/ubuntu/anaconda3/envs/swift_llm/lib/python3.9/site-packages/evaluate/loading.py", line 265, in _download_additional_modules
raise ImportError(
ImportError: To be able to use evaluate-metric/accuracy, you need to install the following dependencies['scikit-learn'] using 'pip install sklearn' for instance'

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

Successfully merging this pull request may close these issues.

1 participant