提交 32549fe2 authored 作者: Amjad Almahairi's avatar Amjad Almahairi

fixed comment msg

上级 431c19c1
...@@ -1367,10 +1367,14 @@ class MRG_RandomStreams(object): ...@@ -1367,10 +1367,14 @@ class MRG_RandomStreams(object):
nstreams=None): nstreams=None):
""" """
Sample `n` times *WITHOUT replacement* from a multinomial distribution Sample `n` times *WITHOUT replacement* from a multinomial distribution
defined by probabilities pvals. `n` needs to be in [1, m], where m is the number of defined by probabilities pvals, and returns the indices of the sampled
elements to select from, i.e. m == pvals.shape[1]. By default n = 1. elements.
`n` needs to be in [1, m], where m is the number of elements to select
from, i.e. m == pvals.shape[1]. By default n = 1.
Example : WRITEME Example : pvals = [[.98, .01, .01], [.01, .49, .50]] and n=1 will
probably result in [[0],[2]]. When setting n=2, this
will probably result in [[0,1],[2,1]].
Notes Notes
----- -----
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论