【发布时间】:2018-04-11 08:53:03
【问题描述】:
我直接复制了coursera的代码,结果是这样enter image description here
我该怎么办?
import numpy as np
import h5py
import matplotlib.pyplot as plt
from testCases_v4 import *
from dnn_utils_v2 import sigmoid, sigmoid_backward, relu, relu_backward
%matplotlib inline
plt.rcParams['figure.figsize'] = (5.0, 4.0) # set default size of plots
plt.rcParams['image.interpolation'] = 'nearest'
plt.rcParams['image.cmap'] = 'gray'
%load_ext autoreload
%autoreload 2
np.random.seed(1)
这就是我得到的
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-4-5084fe490343> in <module>()
2 import h5py
3 import matplotlib.pyplot as plt
----> 4 from testCases_v4 import *
5 from dnn_utils_v2 import sigmoid, sigmoid_backward, relu, relu_backward
6
ModuleNotFoundError: No module named 'testCases_v4'
【问题讨论】:
-
请分享您的代码并解释您面临的问题,以便有效地帮助您。
-
感谢您的建议
标签: python machine-learning deep-learning