PaddleRec icon indicating copy to clipboard operation
PaddleRec copied to clipboard

xdeepfm 配置文件中的一些疑问

Open zouhan6806504 opened this issue 4 years ago • 3 comments

hyper_parameters: sparse_inputs_slots: 27 sparse_feature_number: 1000001 sparse_feature_dim: 9 dense_input_dim: 13

sparse_inputs_slots是离散特征的数目吧,数据里有26个,这里是26+1? sparse_feature_number和sparse_feature_dim是以什么标准来确定的?

zouhan6806504 avatar Nov 18 '21 07:11 zouhan6806504

可以看一下xdeepfm/dygraph_model.py的第35,39行,这里应该是将label也当成sparse输入了,在进入组网的时候实际使用的是sparse_input_slot - 1

yinhaofeng avatar Nov 18 '21 09:11 yinhaofeng

可以看一下xdeepfm/dygraph_model.py的第35,39行,这里应该是将label也当成sparse输入了,在进入组网的时候实际使用的是sparse_input_slot - 1

对,sparse_inputs_slots是这样的,能说下其他参数是怎么确定的吗?

zouhan6806504 avatar Nov 18 '21 09:11 zouhan6806504

这里是方便和deepfm做比较,使用了相同的参数

yinhaofeng avatar Nov 18 '21 13:11 yinhaofeng