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))
)
评论列表
文章目录