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

pickle.load() #59

Open
YueChangjie opened this issue Jan 8, 2021 · 6 comments
Open

pickle.load() #59

YueChangjie opened this issue Jan 8, 2021 · 6 comments

Comments

@YueChangjie
Copy link

Hello,when I am running program sednn-master(python)/clean2clean_verify/main_train_sednn_keras_v2, When the code runs below

with open('./tr_norm.pickle', 'rb') as handle:
scaler = pickle.load(handle)
print(scaler.mean_, scaler.scale_)

ModuleNotFoundError occured, The details is list below:
No module named 'sklearn.preprocessing.data'

Do you have any idea about this?
Thank you very much

@qiuqiangkong
Copy link
Collaborator

qiuqiangkong commented Jan 8, 2021 via email

@YueChangjie
Copy link
Author

Thank you very much for your quick reply.
line 49, scaler = pickle.load(handle)
I have installed sklearn

@YueChangjie
Copy link
Author

sorry to distrub you, I'll try the online solution first. Thank you very much

@YueChangjie
Copy link
Author

你好,方便将sednn-master(python)\clean2clean_verify\tr_norm.pickle的二进制文件发出来吗,我在导入这个文件的时候报错,对应函数main_train_sednn_keras_v2的第49行, No module named 'sklearn.preprocessing.data'
我已安装了sklearn,我发现sklearn的preprocessing里面没有data,难道是因为sklearn版本的原因吗?

@qiuqiangkong
Copy link
Collaborator

qiuqiangkong commented Jan 9, 2021 via email

@YueChangjie
Copy link
Author

好的,十分感谢!

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

2 participants