深度学习入门python考试速成:神经网络之前向传播

矩阵乘法

A B =C\\ A:M*N\\ B:N*P\\ C:M*P

神经网络的内积

\begin{matrix} (x_{1}& x_{2}) & \begin{pmatrix} 1 & 3 & 5\\ 2& 4 & 6 \end{pmatrix} \end{matrix}=\begin{pmatrix} y_{1} & y_{2} & y_{3} \end{pmatrix}\\ \begin{matrix} 1*2 &&&& 2*3 &&&&&1*3 \end{matrix}

XW=Y

W=\begin{pmatrix} 1 & 3&5 \\ 2& 4& 6 \end{pmatrix}

用数学式表示 a_{1}^{(1)}

使用矩阵的乘法运算

Z^{(1)}=h(A^{(1)})\\ Z^{(1)}=\begin{pmatrix} z_{1}^{(1)} &z_{2}^{(1)} & z_{3}^{(1)} \end{pmatrix}

其它层计算类似,图如下

输出层所用的激活函数,要根据求解问题的性质决定。一般地,回 归问题可以使用恒等函数,二元分类问题可以使用sigmoid函数, 多元分类问题可以使用softmax函数。

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-31 19:48:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-31 19:48:02       101 阅读
  3. 在Django里面运行非项目文件

    2023-12-31 19:48:02       82 阅读
  4. Python语言-面向对象

    2023-12-31 19:48:02       91 阅读

热门阅读

  1. Bug升级记

    2023-12-31 19:48:02       64 阅读
  2. CF1914C Quests

    2023-12-31 19:48:02       52 阅读
  3. Crow:run的流程2 建立io_service及线程

    2023-12-31 19:48:02       60 阅读
  4. C语言K&R圣经笔记 4.10递归 4.11 C预处理

    2023-12-31 19:48:02       53 阅读
  5. 归并排序模板

    2023-12-31 19:48:02       50 阅读