Tensorflow embedding for categorical feature
问题 In machine learning, it is common to represent a categorical (specifically: nominal) feature with one-hot-encoding. I am trying to learn how to use tensorflow's embedding layer to represent a categorical feature in a classification problem. I have got tensorflow version 1.01 installed and I am using Python 3.6 . I am aware of the tensorflow tutorial for word2vec, but it is not very instructive for my case. While building the tf.Graph , it uses NCE-specific weights and tf.nn.nce_loss . I just