We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nonzero_embeddings = tf.nn.embedding_lookup(self.weights['feature_embeddings'], self.train_features) self.summed_features_emb = tf.reduce_sum(nonzero_embeddings, 1) # None * K
self.summed_features_emb_square = tf.square(self.summed_features_emb) # None * K
The above code is in the NerualFM.py
when you computed the self.summed_features_emb, the axis you wrote is '1', I think it should be 0. Did I understand wrong?
self.summed_features_emb
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Model.
_________ sum_square part _____________
get the summed up embeddings of features.
nonzero_embeddings = tf.nn.embedding_lookup(self.weights['feature_embeddings'], self.train_features)
self.summed_features_emb = tf.reduce_sum(nonzero_embeddings, 1) # None * K
get the element-multiplication
self.summed_features_emb_square = tf.square(self.summed_features_emb) # None * K
The above code is in the NerualFM.py
when you computed the
self.summed_features_emb
, the axis you wrote is '1', I think it should be 0. Did I understand wrong?The text was updated successfully, but these errors were encountered: