def uniform(stdev, size):
"""
uniform distribution with the given stdev and size
From Ishaan's code:
https://github.com/igul222/speech
"""
return numpy.random.uniform(
low=-stdev * numpy.sqrt(3),
high=stdev * numpy.sqrt(3),
size=size
).astype(theano.config.floatX)
评论列表
文章目录