Autoencoder.py 文件源码

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

项目:RBM_AE 作者: lingxuez 项目源码 文件源码
def predict_x_mean(self, noisy_data_x, noise_prob=0):
        """
        Calculate the predicted mean given input data_x.
        :param data_x: binary input with dimension (dim_input, 1)
        """
        ## hidden layer
        h = expit(self.bias_hidden + self.W.dot(noisy_data_x))
        ## predicted x
        x_mean = expit(self.bias_input + self.W.transpose().dot(h))

        return (h, x_mean)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号