shenweichen / DeepCTR

Easy-to-use,Modular and Extendible package of deep-learning based CTR models .
https://deepctr-doc.readthedocs.io/en/latest/index.html
Apache License 2.0
7.44k stars 2.19k forks source link

Linear logic in DCNMIX #523

Closed idoblankfiverr closed 1 year ago

idoblankfiverr commented 1 year ago

Hi,

When sending both Dense and Sparse features to the linear layer, it expect the input to be in the format of [(None,#dense_features),(None,1,#sparse_features)] But the model's input is the format of (None,#dense_features+#sparse_features). When I print the summary of the model, I see that the linear layer has only #dense_features parameters. Should the sparse features need to be flatten and the concat with the dense features?