《深度学习——Andrew Ng》第一课第四周编程作业

本文详细介绍了L层神经网络的构建步骤,包括初始化参数、线性激活函数的前向传播、反向传播及整个网络的前向传播和反向传播。通过实例解释了如何处理不同层之间的权重矩阵和偏置向量,以及如何进行线性部分的梯度计算。内容涵盖了深度学习的基础知识和实际操作技巧。
摘要由CSDN通过智能技术生成

Building your Deep Neural Network: Step by Step

这里写图片描述

这里写图片描述

3.2 - L-layer Neural Network

The initialization for a deeper L-layer neural network is more complicated because there are many more weight matrices and bias vectors. When completing the initialize_parameters_deep, you should make sure that your dimensions match between each layer. Recall that n[l] n [ l ] is the number of units in layer l l . Thus for example if the size of our input X is (12288,209) ( 12288 , 209 ) (with m=209 m = 209 examples) then:

**Shape of W** **Shape of b** **Activation** **Shape of Activation**
**Layer 1** (n[1],12288) ( n [ 1 ] , 12288 ) (n[1],1) ( n [ 1 ] , 1 ) Z[1]=W[1]X+b[1] Z [ 1 ] = W [ 1 ] X + b [ 1 ] (n[1],209) ( n [ 1 ] , 209 )
**Layer 2** (n[2],n[1]) ( n [ 2 ] , n [ 1 ] ) (n[2],1) ( n [ 2 ] , 1 ) Z[2]=W[2]A[1]+b[2] Z [ 2 ] = W [ 2 ] A [ 1
评论 16
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值