def _randn(shape, randstate=None):
"""Shortcut for :code:`np.random.randn(*shape)`
:param randstate: Instance of np.radom.RandomState or None (which yields
the default np.random) (default None)
"""
randstate = randstate if randstate is not None else np.random
return randstate.randn(*shape)
评论列表
文章目录