当前位置:网站首页>深度学习入门之GRU
深度学习入门之GRU
2022-08-03 05:10:00 【xiaozheng123121】
原文链接:https://zhuanlan.zhihu.com/p/32481747
这里的内容是对台大李宏毅老师课程视频的一些记录以及自己的一些整理和思考。
1. 什么是GRU
GRU(Gate Recurrent Unit)是循环神经网络(Recurrent Neural Network, RNN)的一种。和LSTM(Long-Short Term Memory)一样,也是为了解决长期记忆和反向传播中的梯度等问题而提出来的。
GRU和LSTM在很多情况下实际表现上相差无几,那么为什么我们要使用新人GRU(2014年提出)而不是相对经受了更多考验的LSTM(1997提出)呢。
下图1-1引用论文中的一段话来说明GRU的优势所在。
简单译文:我们在我们的实验中选择GRU是因为它的实验效果与LSTM相似,但是更易于计算。
简单来说就是贫穷限制了我们的计算能力…
相比LSTM,使用GRU能够达到相当的效果,并且相比之下更容易进行训练,能够很大程度上提高训练效率,因此很多时候会更倾向于使用GRU。
OK,那么为什么说GRU更容易进行训练呢,下面开始介绍一下GRU的内部结构。
2. GRU浅析
2.1 GRU的输入输出结构
GRU的输入输出结构与普通的RNN是一样的。
有一个当前的输入 x t x^t xt,和上一个节点传递下来的隐状态(hidden state) h t − 1 h^{t-1} ht−1 ,这个隐状态包含了之前节点的相关信息。
结合 x t x^t xt 和 h t − 1 h^{t-1} ht−1,GRU会得到当前隐藏节点的输出 y t y^t yt 和传递给下一个节点的隐状态 h t h^t ht 。

那么,GRU到底有什么特别之处呢?下面来对它的内部结构进行分析!
2.2 GRU的内部结构
首先,我们先通过上一个传输下来的状态 h t − 1 h^{t-1} ht−1 和当前节点的输入 x t x^t xt 来获取两个门控状态。如下图2-2所示,其中 r r r 控制重置的门控(reset gate), z z z 为控制更新的门控(update gate)。
Tips: σ 为sigmoid函数,通过这个函数可以将数据变换为0-1范围内的数值,从而来充当门控信号。

边栏推荐
- Djiango第二次培训
- typescript46-函数之间的类型兼容性
- 生活原则。
- 内部类、static关键字、final
- 建造者模式(Builder Pattern)
- ModelArts第二次培训
- 接口和抽象
- User password verification
- High availability, two locations and three centers
- 【HMS core】【Ads Kit】Huawei Advertising——Overseas applications are tested in China. Official advertisements cannot be displayed
猜你喜欢

Installation of Apache DolphinScheduler version 2.0.5 distributed cluster

idea使用@Autowired注解爆红原因及解决方法

Interface Test Framework Practice (4) | Get Schema Assertion

Pr第二次培训笔记

【 Harmony OS 】 【 ano UI 】 lightweight data storage

idea uses @Autowired annotation to explain the reasons and solutions

Alienware上线首个数字时装AR试穿体验

IO process thread -> thread -> day5

web安全-sql注入漏洞

Build your own web page on raspberry pie (1)
随机推荐
【HMS core】【Ads Kit】Huawei Advertising——Overseas applications are tested in China. Official advertisements cannot be displayed
1089 狼人杀-简单版 (20 分)
业务表解析-余额系统
Build your own web page on raspberry pie (1)
BIOTIN ALKYNE CAS: 773888-45-2 Price, Supplier
Interface test practice | Detailed explanation of the difference between GET / POST requests
数字孪生园区场景中的坐标知识
Djiango第三次培训
安装IIS服务(Internet信息服务(Internet Information Services,简写IIS,互联网信息服务)
快速上手 Mockito 单元测试框架
[Harmony OS] [ArkUI] ets development graphics and animation drawing
HarmonyOS应用开发培训第二次作业
Interface test framework combat (1) | Requests and interface request construction
High availability, two locations and three centers
JS学习笔记(三)
13.< tag-动态规划和回文字串>lt.647. 回文子串 + lt.516.最长回文子序列
mysql 存储过程 动态参数 查询执行结果
UV decomposition of biotin - PEG2 - azide | CAS: 1192802-98-4 biotin connectors
Technology Sharing | How to do assertion verification for xml format in interface automation testing?
ss-4.2 多个eureka集群案例