中文核心论文:VMD-LSTM-Attention时间序列价格预测实战 完整代码数据可直接运行

项目视频讲解:VMD-Attention-LSTM时间序列价格预测实战 完整数据代码可直接运行_哔哩哔哩_bilibili

模型图:

数据展示:数据有几万条 足够的

主要模型代码:

import tensorflow as tf

def 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))(inputs)
    a = tf.keras.layers.Reshape((input_dim, TIME_STEPS))(a)  # this line is not useful. It's just to kn

猜你喜欢

转载自blog.csdn.net/pythonyanyan/article/details/134686887