Closed p-null closed 5 years ago
The feature value of different filed all start from 1, but they are all embeded into the same matrix, so the offsets is needed.
The feature value of different filed all start from 1, but they are all embeded into the same matrix, so the offsets is needed.
Oh yeah. Thanks for replying!
However, speed can be slower. Adding offset in preprocessing may be a better choice?
Hi, congrats on your great work! I was wondering why you add a offset before embedding?
https://github.com/rixwew/pytorch-fm/blob/a4cfa99aa23147b15a0df065553567dba859246d/torchfm/layer.py#L27
As I am looking at the implementation of xDeepFM, I didn't find the corresponding code in original tensorflow implementation.