deeplearning.ai_JupyterNotebooks
deeplearning.ai_JupyterNotebooks copied to clipboard
DeepLearning.ai课程学习Jupyter Notebook作业
 此处应该是: `inter_area=max((xi1-xi2)*(yi1-yi2),))` 因为存在两个box不相交的情况,简单取绝对值是错误的。
自查了好几遍代码没发现问题出在哪里,从前向传播开始计算结果与答案不一致,我错误的结果是 Z3 = [[ 1.4416984 -0.24909666 5.450499 -0.2618962 -0.20669907 1.3654671 ] [ 1.4070846 -0.02573211 5.08928 -0.48669922 -0.40940708 1.2624859 ]] cost = 4.6648693 导致后面算cost也是偏大。 求助,讨论一下
The path in python code to load the dataset is ''datasets/train_catvnoncat.h5'', while the actual path is ''data/train_catvnoncat.h5''
The assign of the first week of Lesson 4 5.2.3 Putting it together: Pooling backward Change Part: ``` # Set dA_prev to be dA_prev + (the mask multiplied by the...
你好,我在运行的时候一直遇到这样的问题 比如第二课,第一周的Regularization train_X, train_Y, test_X, test_Y = load_2D_dataset() 哎困扰我很久了,一直没有找到原因 TypeError Traceback (most recent call last) c:\users\administrator\appdata\local\programs\python\python36-32\lib\site-packages\matplotlib\colors.py in to_rgba(c, alpha) 131 try: --> 132 rgba = _colors_full_map.cache[c, alpha] 133 except (KeyError,...
s_corrected["dW" + str(l+1)] = s["dW" + str(l+1)]/(1 - pow(beta2, t)) s_corrected["db" + str(l+1)] = s["dW" + str(l+1)]/(1 - pow(beta2, t)) 变量写错了,应该是db,而不是dW 感谢您分享的作业
应该改成 ``` if mode == "max": # Use the corners and "c" to define the current slice from a_prev (≈1 line) a_prev_slice = a_prev[vert_start:vert_end, horiz_start:horiz_end, c] # Create the mask...