当前位置:网站首页>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。
边栏推荐
- redis 哨兵集群搭建
- Acquisition of bidding information
- Sequential action localization | fine grained temporal contrast learning for weak supervised temporal action localization (CVPR 2022)
- 语法泛化三种可行方案介绍
- 英语句式参考纯享版 - 状语从句
- Concurrency opening -- take you from 0 to 1 to build the cornerstone of concurrency knowledge system
- Day110. Shangyitong: gateway integration, hospital scheduling management: Department list, statistics based on date, scheduling details
- Mysql45 talking about global lock, table lock and row lock
- CV (1)- Introduction
- 【2023杰理科技提前批笔试题】~ 题目及参考答案
猜你喜欢

Using dynamic libraries in VS

Widget is everything, widget introduction

Youwei low code: Brick life cycle component life cycle

Establishment of log collection and analysis platform-1-environment preparation

Etcd database source code analysis - cluster membership changes log

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!

Kingbasees SQL language reference manual of Jincang database (8. Function (10))

Convolutional neural network (II) - deep convolutional network: case study

Embedded sharing collection 14

【Day04_0421】C语言选择题
随机推荐
Redis sentinel cluster setup
Convolutional neural network (II) - deep convolutional network: case study
【Day02_0419】C语言选择题
Webapi collation
语法泛化三种可行方案介绍
H. Take the Elevator 贪心
Interview questions for software testing is a collection of interview questions for senior test engineers, which is exclusive to the whole network
基于消防GIS系统的智慧消防应用
英语句式参考纯享版 - 定语从句
逆序打印链表
K. Link with Bracket Sequence I dp
Concurrency opening -- take you from 0 to 1 to build the cornerstone of concurrency knowledge system
Servlet无法直接获取request请求中的JSON格式数据
"Recursive processing of subproblems" -- judging whether two trees are the same tree -- and the subtree of another tree
Servlet filter details
英语句式参考纯享版 - 状语从句
Registration conditions for system integration project management engineer (intermediate level of soft exam) in the second half of 2022
Read five articles in the evening | Economic Daily: don't treat digital collections as wealth making products
em和rem
【Day_02 0419】倒置字符串