当前位置: 首页>>代码示例>>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;未经允许,请勿转载。