neonwatty / machine_learning_refined

Notes, examples, and Python demos for the 2nd edition of the textbook "Machine Learning Refined" (published by Cambridge University Press).
Other
1.67k stars 603 forks source link

ModuleNotFoundError: No module named 'autograd.misc' #6

Closed fbglucky closed 6 years ago

fbglucky commented 6 years ago

I run this code at the terminal: pip install autograd but when I run the the below cell: import sys sys.path.append('../../') import matplotlib.pyplot as plt from mlrefined_libraries import basics_library as baslib from mlrefined_libraries import linear_algebra_library as linlib

Then I got the below error:

ModuleNotFoundError Traceback (most recent call last)

in () 4 sys.path.append('../../') 5 import matplotlib.pyplot as plt ----> 6 from mlrefined_libraries import basics_library as baslib 7 from mlrefined_libraries import linear_algebra_library as linlib /Volumes/DATA/projects/private/ml/mlrefined/mlrefined_libraries/__init__.py in () 7 prefix=__name__+'.', 8 onerror=(lambda x: None)): ----> 9 __import__(modname) 10 /Volumes/DATA/projects/private/ml/mlrefined/mlrefined_libraries/convnets_library/convnet_lib/optimizers.py in () 2 from autograd import value_and_grad 3 from autograd import hessian ----> 4 from autograd.misc.flatten import flatten_func 5 from IPython.display import clear_output 6 from timeit import default_timer as timer ModuleNotFoundError: No module named 'autograd.misc' I am using Anaconda with Python 3.6, I have no idea how to fix this issue. Can you check?
neonwatty commented 6 years ago

It looks like you need to update your version of autograd.