impute.py 文件源码

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

项目:aboleth 作者: data61 项目源码 文件源码
def _initialise_variables(self, X):
        """Initialise the impute variables."""
        datadim = int(X.shape[2])
        impute_means = tf.Variable(
            tf.random_normal(shape=(1, datadim), seed=next(seedgen)),
            name="impute_scalars"
        )
        impute_stddev = tf.Variable(
            tf.random_gamma(alpha=1., shape=(1, datadim), seed=next(seedgen)),
            name="impute_scalars"
        )
        self.normal = tf.distributions.Normal(
            impute_means,
            tf.sqrt(pos(impute_stddev))
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号