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

gen_concated_feature #3

Open
chen849157649 opened this issue Nov 11, 2020 · 1 comment
Open

gen_concated_feature #3

chen849157649 opened this issue Nov 11, 2020 · 1 comment

Comments

@chen849157649
Copy link

你好,我觉得gen_concated_feature.py文件中,sparse_slots_filter = [slot_name for slot_name in slots_filter if slot_name in self.sparse_feats_slots]
应该改为sparse_slots_filter = [slot_name for slot_name in slots_filter if slot_name in (self.sparse_feats_slots+self.list_sparse_feats_slots)]

@chen849157649
Copy link
Author

features.py中,embedding_name = group_name + '/' + feat_meta.name + '_d' + str(feat_meta.dim) + '_to_d' + str(
embedding_dim)若是执行if slot_name in self.dense_feats_slots:这句会报错 'DenseFeature' object has no attribute 'one_hot_dim',所以embedding_name应该放到判断语句内部,分别计算embedding_name

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