LSTM+Transformer混合模型时间序列预测实战教学

视频教学:LSTM+Transformer混合模型时间序列预测实战_哔哩哔哩_bilibili

模型结果:

LSTM+Transformer混合模型时间序列预测实战教学_第1张图片

LSTM+Transformer混合模型时间序列预测实战教学_第2张图片

 代码:
# pip install openpyxl -i https://pypi.tuna.tsinghua.edu.cn/simple/
# pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple/
import numpy as np
import pandas as pd
from tqdm import tqdm
import torch
from torch import nn
import torch.nn.functional as F
from torch import tensor
import torch.utils.data as Data
import math
from matplotlib import pyplot
from datetime import datetime, timedelta
from sklearn.model_selection import trai

你可能感兴趣的:(深度学习机器学习实战,lstm,transformer,人工智能,混合模型时间序列预测,Transformer,时间序列预测,rnn)