Skip to content

Commit

Permalink
fix scikit-learn package name suggestion (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzz authored Sep 29, 2023
1 parent 775555d commit 937a8dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/evaluate/loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def _download_additional_modules(
try:
lib = importlib.import_module(library_import_name) # noqa F841
except ImportError:
library_import_name = "scikit-learn" if library_import_name == "sklearn" else library_import_name
needs_to_be_installed.add((library_import_name, library_import_path))
if needs_to_be_installed:
raise ImportError(
Expand Down

0 comments on commit 937a8dd

Please sign in to comment.