We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b689df6 + 9cdc4ee commit 6685d04Copy full SHA for 6685d04
tensorflow_probability/python/mcmc/diagnostic.py
@@ -160,13 +160,14 @@ def effective_sample_size(states,
160
target_log_prob_fn=target.log_prob,
161
step_size=0.05,
162
num_leapfrog_steps=20))
163
- states.shape
+ print(states.shape)
164
==> (1000, 2)
165
166
ess = effective_sample_size(states, filter_beyond_positive_pairs=True)
167
- ==> Shape (2,) Tensor
+ print(ess.shape)
168
+ ==> (2,)
169
- mean, variance = tf.nn.moments(states, axis=0)
170
+ mean, variance = tf.nn.moments(states, axes=0)
171
standard_error = tf.sqrt(variance / ess)
172
```
173
0 commit comments