1.导库
概率RNN 受到 DeepAR 的启发,并且几乎与 DeepAR 相同:https://arxiv.org/abs/1704.04110
# fix python path if working locally
from utils import fix_pythonpath_if_working_locally
fix_pythonpath_if_working_locally()
%load_ext autoreload
%autoreload 2
%matplotlib inline
import torch
import torch.nn as nn
import torch.optim