zihaolucky commented on a change in pull request #9195: [WIP]NCE loss gluon
URL: https://github.com/apache/incubator-mxnet/pull/9195#discussion_r166171054
##########
File path: python/mxnet/gluon/data/sampler.py
##########
@@ -136,3 +138,74 @@ def __len__(self):
raise ValueError(
"last_batch must be one of 'keep', 'discard', or 'rollover', " \
"but got %s"%self._last_batch)
+
+
+class AliasMethodSampler(object):
Review comment:
@piiswrong As the `NoiseContrastiveEstimationLoss` use it, where should I
put the code?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services