当前位置:网站首页>RNN循环神经网络
RNN循环神经网络
2022-07-26 06:11:00 【李峻枫】
时序数据
给出一个较为严格的定义:时间序列数据是同一统一指标按时间顺序记录的数据列。 在同一数据列中的各个数据必须是同口径的,要求具有可比性。 时序数据可以是时期数,也可以时点数。 时间序列分析的目的是通过找出样本内时间序列的统计特性和发展规律性,构建时间序列模型 ,进行样本外预测。
通俗来说,时序数据就是存在着先后关系的数据:
- 具体的时间点(时刻)并不重要;
- 只关注其的先后关系
历史信息
如何记录历史信息是时序数据的一个关键问题。
要记住从开始到现在所有的状态是不可能的。
隐马尔可夫假设
简单来说,就是当前状态只要上一个状态有关,与之前状态无关。即上一个状态可以完美地记录之前的全部信息。
一般而言,这个假设是不成立的,常常会用当前状态前几个或者前几十个状态来表示之前的所有信息。通过这个假设,就可以使得需要记住的状态数大大减少。
引入状态函数
另一种方法来减少需要记录的东西。
假设上一个状态函数是 H t − 1 H_{t-1} Ht−1,当前的输入是 X t X_t Xt。
那么 H t = f ( H t − 1 , X t ) H_t=f(H_{t-1},X_t) Ht=f(Ht−1,Xt)。
不难看出, H t H_t Ht其实就是不断地将 X t X_t Xt进行累积,从某种意义上说,它就是记录了之前的全部信息。
- 这个也正是RNN的基本思想。
RNN神经网络
有两个输入 X t , H t − 1 X_t,H_{t-1} Xt,Ht−1分别表示当前时刻是数据与历史信息。
有两个输出 Y t , H t Y_t,H_t Yt,Ht分别表示当前时刻的输出与包含了当前时刻信息的历史信息。
训练
这里就需要用到隐马尔可夫的思想了。
从时序序列中随机截取一段对模型进行训练。这种做法听起来好像有点奇怪,但是在实际操作中是非常可行了。因为训练的轮次很多,每次训练一段,最终一定会将整个序列都训练一遍。
反观每次从头训练,这样就大大减少了样本数量,非常容易造成过拟合现象。
预测
给点前面几个X,即可,初始状态均设为0。
边栏推荐
- Intelligent fire protection application based on fire GIS system
- Establishment of log collection and analysis platform-1-environment preparation
- Introduction of four redis cluster schemes + comparison of advantages and disadvantages
- Convolutional neural network (II) - deep convolutional network: case study
- YOLOv6:又快又准的目标检测框架开源啦
- Servlet filter details
- em和rem
- Age is a hard threshold! 42 years old, Tencent level 13, master of 985, looking for a job for three months, no company actually accepted!
- Binary sort tree (BST)~
- Embedded sharing collection 14
猜你喜欢
![[(SV & UVM) knowledge points encountered in written interview] ~ phase mechanism](/img/19/32206eb6490c2a5a7a8e746b5003c1.png)
[(SV & UVM) knowledge points encountered in written interview] ~ phase mechanism

Interview questions for software testing is a collection of interview questions for senior test engineers, which is exclusive to the whole network

Solutions to the failure of copy and paste shortcut keys

VS中使用动态库

Niuke network: TOPK problem of additive sum between two ordinal groups

The time complexity of two recursive entries in a recursive function

Convolutional neural network (IV) - special applications: face recognition and neural style transformation

Cdga | how to build data asset catalogue?

Implementation of PHP multitask second timer

Day110. Shangyitong: gateway integration, hospital scheduling management: Department list, statistics based on date, scheduling details
随机推荐
VRRP protocol and experimental configuration
Can you make a JS to get the verification code?
Concurrency opening -- take you from 0 to 1 to build the cornerstone of concurrency knowledge system
【2023杰理科技提前批笔试题】~ 题目及参考答案
Distributed | practice: smoothly migrate business from MYCAT to dble
Amd zen4 game God u reached 208mb cache within this year, which is unprecedented
【BM2 链表内指定区间反转】
Flex layout
JDBC streaming query and cursor query
Kingbasees SQL language reference manual of Jincang database (8. Functions (XI))
VRRP principle and basic commands
Matlab 向量与矩阵
Flex layout
递归处理——子问题
2022 National latest fire-fighting facility operator (Senior fire-fighting facility operator) simulation test questions and answers
Solutions to the failure of copy and paste shortcut keys
Day110. Shangyitong: gateway integration, hospital scheduling management: Department list, statistics based on date, scheduling details
实习运维知识积累
【Day_04 0421】计算糖果
[2023 Jerry technology approval test questions in advance] ~ questions and reference answers