Guest User

Error

a guest
Jan 2nd, 2020
58
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---------------------------------------------------------------------------
  2. ModuleNotFoundError                       Traceback (most recent call last)
  3. <ipython-input-2-9240d2ad9677> in <module>
  4.       1 import tensorflow as tf
  5. ----> 2 from edward.models import Normal
  6.       3
  7.       4 W_0 = Normal(loc=tf.zeros([1, 2]), scale=tf.ones([1, 2]))
  8.       5 W_1 = Normal(loc=tf.zeros([2, 1]), scale=tf.ones([2, 1]))
  9.  
  10. /mnt/code/anaconda3/lib/python3.7/site-packages/edward/__init__.py in <module>
  11.       3 from __future__ import print_function
  12.       4
  13. ----> 5 from edward import criticisms
  14.       6 from edward import inferences
  15.       7 from edward import models
  16.  
  17. /mnt/code/anaconda3/lib/python3.7/site-packages/edward/criticisms/__init__.py in <module>
  18.       5 from __future__ import print_function
  19.       6
  20. ----> 7 from edward.criticisms.evaluate import *
  21.       8 from edward.criticisms.ppc import *
  22.       9 from edward.criticisms.ppc_plots import *
  23.  
  24. /mnt/code/anaconda3/lib/python3.7/site-packages/edward/criticisms/evaluate.py in <module>
  25.       7 import tensorflow as tf
  26.       8
  27. ----> 9 from edward.models import RandomVariable
  28.      10 from edward.util import check_data, get_session, compute_multinomial_mode, \
  29.      11     with_binary_averaging
  30.  
  31. /mnt/code/anaconda3/lib/python3.7/site-packages/edward/models/__init__.py in <module>
  32.       5 from __future__ import print_function
  33.       6
  34. ----> 7 from edward.models.dirichlet_process import *
  35.       8 from edward.models.empirical import *
  36.       9 from edward.models.param_mixture import *
  37.  
  38. /mnt/code/anaconda3/lib/python3.7/site-packages/edward/models/dirichlet_process.py in <module>
  39.       6
  40.       7 from edward.models.random_variable import RandomVariable
  41. ----> 8 from tensorflow.contrib.distributions import Distribution
  42.       9
  43.      10 try:
  44.  
  45. ModuleNotFoundError: No module named 'tensorflow.contrib'
RAW Paste Data