當前位置: 首頁>>代碼示例>>Python>>正文


Python RBM.__init__方法代碼示例

本文整理匯總了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)
開發者ID:gdl-civestav-localization,項目名稱:cinvestav_location_fingerprinting,代碼行數:35,代碼來源:grbm.py

示例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,
        )
開發者ID:pangyuteng,項目名稱:chalearn2014_wudi_lio,代碼行數:32,代碼來源:grbm.py

示例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,
     )
開發者ID:urszula-kaczmar,項目名稱:SpeechDBN,代碼行數:27,代碼來源:grbm.py

示例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)
開發者ID:Warvito,項目名稱:My-tutorial,代碼行數:16,代碼來源:GB_rbm_CD.py

示例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)
開發者ID:EugenePY,項目名稱:BoltzMachine,代碼行數:5,代碼來源:ParallelTempering.py

示例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)
開發者ID:EugenePY,項目名稱:BoltzMachine,代碼行數:7,代碼來源:RTRBM.py


注:本文中的rbm.RBM.__init__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。