Skip to content

Implement sampler as independent function #5917

@wanghaoshuang

Description

@wanghaoshuang
  • uniform distribution sampler
  • log uniform distribution sampler
    • The terms in NLP application always meet heavy-tailed distribution. So we need a log uniform distribution sampler. And the distribution`s PDF is 1/(x+1)lnR in which R is the range of sampling.

How to implement log uniform distribution sampler

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions