本文整理汇总了Python中rbm.RBM.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python RBM.__init__方法的具体用法?Python RBM.__init__怎么用?Python RBM.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rbm.RBM
的用法示例。
在下文中一共展示了RBM.__init__方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from rbm import RBM [as 别名]
# 或者: from rbm.RBM import __init__ [as 别名]
def __init__(self, input=None, n_visible=784, n_hidden=500,
W=None, h_bias=None, v_bias=None, numpy_rng=None, theano_rng=None):
"""
GBRBM constructor. Defines the parameters of the model along with
basic operations for inferring hidden from visible (and vice-versa).
It initialize parent class (RBM).
:param input: None for standalone RBMs or symbolic variable if RBM is part of a larger graph.
:param n_visible: number of visible units
:param n_hidden: number of hidden units
:param W: None for standalone RBMs or symbolic variable pointing to a
shared weight matrix in case RBM is part of a DBN network; in a DBN,
the weights are shared between RBMs and layers of a MLP
:param h_bias: None for standalone RBMs or symbolic variable pointing
to a shared hidden units bias vector in case RBM is part of a
different network
:param v_bias: None for standalone RBMs or a symbolic variable
pointing to a shared visible units bias
"""
RBM.__init__(
self,
input=input,
n_visible=n_visible,
n_hidden=n_hidden,
W=W, h_bias=h_bias,
v_bias=v_bias,
numpy_rng=numpy_rng,
theano_rng=theano_rng)
示例2: __init__
# 需要导入模块: from rbm import RBM [as 别名]
# 或者: from rbm.RBM import __init__ [as 别名]
def __init__(
self,
input,
n_in=784,
n_hidden=500,
W=None,
hbias=None,
vbias=None,
numpy_rng=None,
transpose=False,
activation=T.nnet.sigmoid,
theano_rng=None,
name="grbm",
W_r=None,
dropout=0,
dropconnect=0,
):
# initialize parent class (RBM)
RBM.__init__(
self,
input=input,
n_visible=n_in,
n_hidden=n_hidden,
W=W,
hbias=hbias,
vbias=vbias,
numpy_rng=numpy_rng,
theano_rng=theano_rng,
)
示例3: __init__
# 需要导入模块: from rbm import RBM [as 别名]
# 或者: from rbm.RBM import __init__ [as 别名]
def __init__(
self,
input,
n_visible=784,
n_hidden=500,
W=None,
hbias=None,
vbias=None,
numpy_rng=None,
transpose=False,
theano_rng=None,
weight_decay=0.0002,
):
RBM.__init__(
self,
input=input,
n_visible=n_visible,
n_hidden=n_hidden,
W=W,
hbias=hbias,
vbias=vbias,
numpy_rng=numpy_rng,
theano_rng=theano_rng,
weight_decay=weight_decay,
)
示例4: __init__
# 需要导入模块: from rbm import RBM [as 别名]
# 或者: from rbm.RBM import __init__ [as 别名]
def __init__(self,
input,
n_visible=16,
n_hidden=20,
W=None, hbias=None, vbias=None,
numpy_rng=None, theano_rng=None):
# initialize parent class (RBM)
RBM.__init__(self,
input=input,
n_visible=n_visible,
n_hidden=n_hidden,
W=W, hbias=hbias, vbias=vbias,
numpy_rng=numpy_rng, theano_rng=theano_rng)
示例5: __init__
# 需要导入模块: from rbm import RBM [as 别名]
# 或者: from rbm.RBM import __init__ [as 别名]
def __init__(self, input, n_visible, n_hidden):
RBM.__init__(self, input=input, n_visible=n_visible,
n_hidden=n_hidden)
示例6: __init__
# 需要导入模块: from rbm import RBM [as 别名]
# 或者: from rbm.RBM import __init__ [as 别名]
def __init__(self, input, n_hid, n_vis, Wp=None,
W=None, hbias=None, vbias=None):
# build parameters of Shifted RBM
RBM.__init__(self, input, n_visible=n_vis, n_hidden=n_hid,
W=W, hbias=hbias, vbias=vbias)