RBM.py 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号