LightCTR icon indicating copy to clipboard operation
LightCTR copied to clipboard

gen_concated_feature

Open chen849157649 opened this issue 5 years ago • 1 comments

你好,我觉得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 avatar Nov 11 '20 03:11 chen849157649

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

chen849157649 avatar Nov 11 '20 04:11 chen849157649