问题
Is there a function that allow me to do negative sampling without using sampled_softmax_loss ( Tensorflow negative sampling)
I am looking for negative sampling method that takes frequency of a label in training data into training account, and increases chance to negatively sample a word with high frequency.
I found that negative sampling was mentioned by tensorflow official document, but I cannot find any useful implementation in the API:
https://www.tensorflow.org/extras/candidate_sampling.pdf
来源:https://stackoverflow.com/questions/49666915/negative-sampling-in-tensorflow-without-sampled-softmax-loss-function