摘要: 查看属性 .ndim :维度 .shape :各维度的尺度 (2,5) .size :元素的个数 10 .dtype :元素的类型 dtype(‘int32’) ndarray数组的创建 np.arange(n) ; 元素从0到n-1的ndarray类型 np.ones(shape): 生成全1 n 阅读全文
posted @ 2020-06-09 22:47 douzujun 阅读(577) 评论(0) 推荐(0) 编辑
摘要: Regularization Deep Learning models have so much flexibility and capacity that overfitting can be a serious problem,if the training dataset is not big 阅读全文
posted @ 2020-06-09 17:55 douzujun 阅读(868) 评论(0) 推荐(0) 编辑
摘要: 最后一行改成这个: plot_decision_boundary(lambda x: predict_dec(parameters, x.T), train_X, np.squeeze(train_Y)) 或者 plt.scatter(X[0, :], X[1, :], c=np.squeeze(y 阅读全文
posted @ 2020-06-09 15:45 douzujun 阅读(265) 评论(0) 推荐(0) 编辑
摘要: Initialization 如何选择初始化方式,不同的初始化会导致不同的结果 好的初始化方式: 加速梯度下降的收敛(Speed up the convergence of gradient descent) 增加梯度下降 收敛成 一个低错误训练(和 普遍化)的几率(Increase the odd 阅读全文
posted @ 2020-06-09 14:36 douzujun 阅读(902) 评论(0) 推荐(0) 编辑