brails.processors.FoundationClassifier.lib.alias_multinomial module

class brails.processors.FoundationClassifier.lib.alias_multinomial.AliasMethod(probs)

Bases: object

From: https://hips.seas.harvard.edu/blog/2013/03/03/the-alias-method-efficient-sampling-with-many-discrete-outcomes/

cuda()
draw(N)

Draw N samples from multinomial