摘要: 一、 激活函数 def sigmoid(Z): A = 1/(1+np.exp(-Z)) cache = Z return A, cache def relu(Z): A = np.maximum(0,Z) cache = Z return A, cache 二、 激活函数backward """ 阅读全文
posted @ 2020-03-04 14:16 金思远 阅读(1007) 评论(0) 推荐(0) 编辑
摘要: 一、 创建placeholder def create_placeholders(n_H0, n_W0, n_C0, n_y): """ Creates the placeholders for the tensorflow session. Arguments: n_H0 -- scalar, h 阅读全文
posted @ 2020-03-04 11:38 金思远 阅读(267) 评论(0) 推荐(0) 编辑