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

文本分类如何设置seed保持每次结果都一样呢? #728

Open
zechenli03 opened this issue Jul 1, 2020 · 4 comments
Open

文本分类如何设置seed保持每次结果都一样呢? #728

zechenli03 opened this issue Jul 1, 2020 · 4 comments

Comments

@zechenli03
Copy link

zechenli03 commented Jul 1, 2020

看了这个教程https://aistudio.baidu.com/aistudio/projectdetail/147006
发现每次运行结果都不一样
请问什么地方可以加random.seed吗?
我按照PaddlePaddle/PaddleHub#529里添加program.random_seed = 1并没有作用

@kinghuin
Copy link
Contributor

kinghuin commented Jul 2, 2020

您好,目前paddlehub还不支持固定所有随机因素,待相关功能完善后,会增加这一功能

@kinghuin
Copy link
Contributor

kinghuin commented Jul 3, 2020

是train的时候结果不一样还是predict的时候呢,差异有多大呢?

@zechenli03
Copy link
Author

是train的时候结果不一样还是predict的时候呢,差异有多大呢?

Train的时候结果不一样 有些不太好的小数据集结果差异挺大的 有一些没什么影响

@wxl1351641822
Copy link

我也是,用这个task.main_program.random_seed = args.random_seed固定了,但是预测结果一样的参数能有0.4%的差距

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

3 participants