My question is similar to this.
I also use pickle to save & load model. I meet the below error during pickle.load( )
from sklearn.preprocessing import StandardScaler
# SAVE
scaler = StandardScaler().fit(X_train)
X_trainScale = scaler.transform(X_train)
pickle.dump(scaler, open('scaler.scl','wb'))
# =================
# LOAD
sclr = pickle.load(open('scaler.scl','rb')) # => ModuleNotFoundError: No module named 'sklearn.preprocessing._data'
X_testScale = sclr.transform(X_test)
ModuleNotFoundError: No module named 'sklearn.preprocessing._data'
It looks like a sklearn version issue. My sklearn version is 0.20.3, Python version is 3.7.3.
But I am using Python in an Anaconda .zip file. Is it possible to solve this without updating the version of sklearn?