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

一个小问题 #2

Open
chenjw505 opened this issue Aug 9, 2021 · 1 comment
Open

一个小问题 #2

chenjw505 opened this issue Aug 9, 2021 · 1 comment

Comments

@chenjw505
Copy link

# 还不懂啥意思
test_transformed['det_hh_fam_stat_ Grandchild <18 ever marr not in subfamily'] = 0

这一步是不是因为测试集里的变量det_hh_fam_stat没有 'Grandchild <18 ever marr not in subfamily', 但是训练集里面是有这个类型的,所以这里直接把测试集的设为0.

像这种训练集和测试集类别变量取值有差别的情况,有什么好的统一操作解决的吗? 增加一个Other类别?

@over123Jameshh
Copy link

我也遇到了这个问题,请问您是如何解决的

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