RBM.py 文件源码

python
阅读 37 收藏 0 点赞 0 评论 0

项目:RBM_AE 作者: lingxuez 项目源码 文件源码
def gibbs_sample_h(self, x):
        """
        Sample a new h from p(h|x) using current parameters.
        :param x: shape (dim_input, 1)
        :return: shape (dim_hidden, 1)
        """
        h_mean = expit(self.bias_hidden + self.W.dot(x))
        return self.bernoulli(h_mean)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号