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

Wide&Deep代码中对所有sparse特征只用一个embedding #470

Closed
lhbrichard opened this issue Jun 23, 2021 · 2 comments
Closed

Wide&Deep代码中对所有sparse特征只用一个embedding #470

lhbrichard opened this issue Jun 23, 2021 · 2 comments

Comments

@lhbrichard
Copy link

wide deep代码里对sparse特征先做embedding,查看代码发现是直接统计所有sparse特征取值不同的数值,作为sparse_feature_number,来初始化一个embedding layer的,那这样子做岂不是不同sparse feature有同个值,embedding后的结果是一样的,比如A字段也有数值2,B字段也有数值2,这样子是不是没有区分度了
image
image

@frankwhzhang
Copy link
Collaborator

需要自己对多个特征值进行id的区分

@lhbrichard
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