Negative Sampling in Tensorflow without sampled_softmax_loss function

爱⌒轻易说出口 提交于 2020-01-04 09:41:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!