提交 b901b850 authored 作者: lamblin's avatar lamblin

Merge pull request #1113 from abalkin/doc-fixes

Corrected the fully qualified name of RandomState class
...@@ -14,7 +14,7 @@ from theano.compile import optdb ...@@ -14,7 +14,7 @@ from theano.compile import optdb
class RandomStateType(gof.Type): class RandomStateType(gof.Type):
"""A Type wrapper for numpy.RandomState """A Type wrapper for numpy.random.RandomState
The reason this exists (and `Generic` doesn't suffice) is that The reason this exists (and `Generic` doesn't suffice) is that
RandomState objects that would appear to be equal do not compare RandomState objects that would appear to be equal do not compare
...@@ -70,13 +70,13 @@ random_state_type = RandomStateType() ...@@ -70,13 +70,13 @@ random_state_type = RandomStateType()
class RandomFunction(gof.Op): class RandomFunction(gof.Op):
"""Op that draws random numbers from a numpy.RandomState object """Op that draws random numbers from a numpy.random.RandomState object
""" """
def __init__(self, fn, outtype, inplace=False, ndim_added=0): def __init__(self, fn, outtype, inplace=False, ndim_added=0):
""" """
:param fn: a member function of numpy.RandomState :param fn: a member function of numpy.random.RandomState
Technically, any function with a signature like the ones in Technically, any function with a signature like the ones in
numpy.random.RandomState will do. This function must accept numpy.random.RandomState will do. This function must accept
the shape (sometimes called size) of the output as the last the shape (sometimes called size) of the output as the last
...@@ -133,7 +133,7 @@ class RandomFunction(gof.Op): ...@@ -133,7 +133,7 @@ class RandomFunction(gof.Op):
def make_node(self, r, shape, *args): def make_node(self, r, shape, *args):
""" """
:param r: a numpy.RandomState instance, or a Variable of Type :param r: a numpy.random.RandomState instance, or a Variable of Type
RandomStateType that will contain a RandomState instance. RandomStateType that will contain a RandomState instance.
:param shape: an lvector with a shape defining how many samples :param shape: an lvector with a shape defining how many samples
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论