项目代码视频讲解:Keras搭建lstm+dnn多变量时间序列预测降水量预测_哔哩哔哩_bilibili
直接上结果:
完整代码:
from math import sqrt from numpy import concatenate from matplotlib import pyplot from pandas import read_csv from pandas import DataFrame from pandas import concat from sklearn.preprocessing import MinMaxScaler from sklearn.preprocessing import LabelEncoder from sklearn.metrics import mean_squared_error from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM import numpy as np #转成有监督数据 def series_to_supervised(data, n_in=1, n_out&#