Richard Lee
Richard Lee
你应该没有处理 NULL 的数据吧, 你先看看自己的数据有没有 NULL, `df_train.isnull().any()` 如果有的话用你想要的值 fill 一下应该就可以了
因为这里有 numerical feature, 所以对于整个输入的 vector, 不能直接 tf.nn.embedding_lookup 就完事了, 因为对于 numerical feature 没法做到真正的 embedding. 因此, 这里的做法是, 拿到 tf.nn.embedding_lookup 之后, 和输入的 vector 直接相乘一下. 对于 categorical feature, 我们当然是希望保持 embedding 对应索引的那个 vector. 所以就直接置为 1...
> If do so,what`s the meaning of categorical data? please note this line(DeepFM.py, around line 88) `self.y_first_order = tf.reduce_sum(tf.multiply(self.y_first_order, feat_value), 2) # None * F` It's not for categorical feature,...