ModuleNotFoundError: No module named 'sklearn.linear_model._base'

64
December 11, 2019, at 01:00 AM

I am trying to load a model saved as a .joblib file. I have tried pickle, sklearn.externals.joblib and joblib itself. All the same error. Below is an example of what I am trying to do.

 clf = joblib.load("linear_regression_model.joblib")

This model was made using sklearn.linear_model.LinearRegression. However, when I try to open this file, I get this error:

ModuleNotFoundError: No module named 'sklearn.linear_model._base'

Package Versions:

Python 3.7.5

Sklearn 0.21.3

Joblib 0.14.0

Scipy 1.3.2

Any idea of what is going on? Thanks in advance.

READ ALSO
python isinstance in loop nested

python isinstance in loop nested

What is the most efficient way for python to drill down a nested list of 'PyPDF2generic

60
How to run a python script with another virtual environment dependencies in a DAG in Airflow?

How to run a python script with another virtual environment dependencies in a DAG in Airflow?

How to run a python script with another virtual environment dependencies in a DAG in Airflow? Not using the main python environment where airflow is installed

72
Error when opening executable in raspberry pi [closed]

Error when opening executable in raspberry pi [closed]

Want to improve this question? Update the question so it's on-topic for Stack Overflow

96
Getting error about argument when calling method

Getting error about argument when calling method

I have feature file from where I am trying to get the email :

59