Dropout的作用:

cell  1 - cell 2 依旧

cell 3 Dropout层的前向传播

  核心代码:

    train 时:

   if mode == 'train':
###########################################################################
# TODO: Implement the training phase forward pass for inverted dropout. #
# Store the dropout mask in the mask variable. #
###########################################################################
mask = (np.random.rand(*x.shape) < p) /p
out = x * mask

    test 时:

     ###########################################################################
elif mode == 'test':
###########################################################################
# TODO: Implement the test phase forward pass for inverted dropout. #
###########################################################################
out = x

  原理较为简单。

cell 4 反向传播:

  主要是计算偏导。

  核心代码:

     dx = dout * mask    

cell 5 对全连接网络使用Dropout

  将相应的层加入到模型即可。

附:通关CS231n企鹅群:578975100 validation:DL-CS231n

最新文章

  1. React2
  2. VirtualBox piix4_smbus Error
  3. c4,configure the debug environment
  4. 写简单游戏,学编程语言-python篇
  5. 查询oracle连接数 对应的 应用程序
  6. ios 数据类型转换 UIImage转换为NSData NSData转换为NSString
  7. GO语言练习:网络编程 TCP 示例
  8. C# RSA 算法
  9. iOS中UITableView数据源刷新了,但tableview当中的cell没有刷新
  10. 安装及破解IntelliJ IDEA15
  11. 在KCloud上轻松“玩转”Docker
  12. private、 protected、 public、 internal 修饰符的访问权限
  13. getDeclaredConstructor()与getConstructor的差别
  14. 识别Andriod APK签名证书类型
  15. iOS 时间戳的问题
  16. Spring Boot快速入门(最新)
  17. 程序猿媛 九:Adroid zxing 二维码3.1集成(源码无删减)
  18. Jmeter API Performance Test
  19. 面试 12:玩转 Java 快速排序
  20. 【原创】运维基础之Docker(6)性能

热门文章

  1. 初识python轻量web框架flask
  2. java jdbc 同时操作查询删除操作
  3. struts2 环境建立(1)
  4. HTML5画布(基础篇11-10)
  5. 九度OJ 1070:今年的第几天? (日期计算)
  6. 我的Android进阶之旅------>对Java中注释/**@hide*/的初步认识
  7. 在cocos2d-x中使用LUA
  8. python输出shell命令执行结果
  9. 2048plus,可以直接分享到微信的2048
  10. rbx1包里机器人仿真程序的实践