一、序列模型 时间序列 预测方式有自回归模型(与过去所有时间有关)、马尔可夫模型(只与x个过去数据有关)、潜变量模型(h+x->新的h,再循环)。 多层感知机实现马尔可夫模型: %matplotlib inline import torch from torch import nn from d2l import torch as d2l T = 1000 # 总共产生1000个点 time = torch.arange(1