I am trying to run the optional labs of the machine learning specialization from coursera, and I stuck with some libraries and functions that I can not install
plt.style.use('./deeplearning.mplstyle')
I got the error message
ModuleNotFoundError Traceback (most recent call last)
in
3 import matplotlib.pyplot as plt
4 print(plt.style.available)
----> 5 plt.style.use('./deeplearning.mplstyle')
OSError: './deeplearning.mplstyle' not found in the style library and input is not a valid URL or path; see `style.available` for list of available styles
What can I do?
You need to download the deeplearning.mplstyle file to use the plotting style.
To download this file from the Optional Lab follow these steps
plt.style.use('./deeplearning.mplstyle') as is - make sure your main code file and deeplearning.mplstyle are in the same folder.It is because you may did not download all the files from coursera. Make sure to download all the files, especially, deeplearning.mplstyle, lab_utils_common.py, lab_utils_multi.py and keep them in one folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With