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

关于数据预处理的问题 #27

Open
L0ngxhn opened this issue Jul 30, 2021 · 1 comment
Open

关于数据预处理的问题 #27

L0ngxhn opened this issue Jul 30, 2021 · 1 comment

Comments

@L0ngxhn
Copy link

L0ngxhn commented Jul 30, 2021

大佬你好,我发现pro_data.py代码上有个小逻辑没有处理。但是不确定会不会最终影响实验结果。

data_test = data_test.drop(all_index)

247行 和 253行可能导致 train数据集中重复添加相同记录,从而导致数据集处理前后总数不一致问题。

将224行划分成train:test = 2:8,可大概率复现该现象。

解决方法:移除247和253行代码,并在255行后添加data_train = pd.concat([data_train, data_test.loc[all_index]])

@L0ngxhn
Copy link
Author

L0ngxhn commented Jul 30, 2021

master和pl都可能存在该问题

###该死的排版。。。忘了提交前先Preview一下了。

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

1 participant