VMD-Attention-LSTM时间序列价格预测实战 完整数据代码可直接运行_哔哩哔哩_bilibili
数据展示:数据有几万条 足够的
主要模型代码:
import tensorflow as tfdef attention_3d_block(inputs,TIME_STEPS,SINGLE_ATTENTION_VECTOR):# inputs.shape = (batch_size, time_steps, input_dim)# inputs = tf.expand_dims(inputs,1)input_dim = int(inputs.shape[2])a = tf.keras.layers.Permute((2, 1))