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

The reason why the author's results cannot be reproduced #32

Open
ZhengChen6 opened this issue Mar 28, 2024 · 1 comment
Open

The reason why the author's results cannot be reproduced #32

ZhengChen6 opened this issue Mar 28, 2024 · 1 comment

Comments

@ZhengChen6
Copy link

ZhengChen6 commented Mar 28, 2024

作者您好!
我猜测在issue种很多人无法复现您的结果是因为您在您的代码种用os.listdir获得目录然后再划分训练集和测试集,一旦更换主机,os.listdir得到的文件的顺序是不一样的,所以我们最终划分的数据集和您的数据集是不一样的。我分别尝试在两台主机上打印os.listdir获得的目录顺序,发现其不一致。
image

主机一:
image

主机二:
image

我建议您对os.listdir后的all_dirs进行排序后再划分数据集!

I guess that many people in the issue cannot reproduce your results because you use os.listdir in your code to obtain the dirs and then divide the training set and test set. Once the host is changed, the order of the files obtained by os.listdir is not the same. The same, so the data set we finally divided is different from your data set. I tried to print the directory order obtained by os.listdir on the two hosts and found that it was inconsistent. @ge-xing

@ge-xing
Copy link
Owner

ge-xing commented Mar 28, 2024

Thank you~

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