Skip to content

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

@ticlazau

Description

@ticlazau

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions