本文整理匯總了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)