I want to evaluate the cdf of a multivariate normal distribution using tensorflow. What I have tried so far:
import tensorflow as tf
ds = tf.contrib.distributions
# Initialize a single 3-variate Gaussian.
mu = [0., 0., 0.]
cov = [[ 0.36, 0.12, 0.06],
[ 0.12, 0.29, -0.13],
[ 0.06, -0.13, 0.26]]
mvn = ds.MultivariateNormalFullCovariance(
loc=mu,
covariance_matrix=cov)
value = tf.constant([0., 0., 0.])
with tf.Session() as sess:
print mvn.cdf(value).eval()
This yields the error:
NotImplementedError: cdf is not implemented when overriding event_shape
I don't understand why I am overriding the event_shape since event_shape and the shape of value are the same. What am I doing wrong?