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

ModuleNotFoundError: No module named 'sklearn.externals.joblib' #62

Open
ticlazau opened this issue Nov 28, 2022 · 0 comments
Open

ModuleNotFoundError: No module named 'sklearn.externals.joblib' #62

ticlazau opened this issue Nov 28, 2022 · 0 comments

Comments

@ticlazau
Copy link

Hello,

I am running on AzureML the following notebook provided as an example in this repo:
https://github.com/IBM/watson-openscale-samples/blob/main/IBM%20Cloud/Azure/notebo[…]dit%20model%20with%20Azure%20Service%20and%20scikit-learn.ipynb

For the cell containing:

model_name = "german_credit_risk"
model_path = "german_credit_risk_20.joblib" #"german_credit_risk.joblib"
clf = joblib.load(os.path.join(os.getcwd(), model_path))

I am getting this error:
ModuleNotFoundError: No module named 'sklearn.externals.joblib'

Any advice on how this issue can be overcome? I believe this is because of the sklearn syntax - instead of "#from sklearn.externals import joblib" should be "import joblib" but german_credit_risk_20.joblib file is binary and can't be modified.

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

No branches or pull requests

1 participant