当前位置:   article > 正文

细读Autoformer 代码实战 付完整代码数据_autoformer matlab代码

autoformer matlab代码

项目视频讲解:Autoformer时间序列实战完整代码数据 可直接运行_哔哩哔哩_bilibili

  1. import torch
  2. import torch.nn as nn
  3. import torch.nn.functional as F
  4. from layers.Embed import DataEmbedding, DataEmbedding_wo_pos
  5. from layers.AutoCorrelation import AutoCorrelation, AutoCorrelationLayer
  6. from layers.Autoformer_EncDec import Encoder, Decoder, EncoderLayer, DecoderLayer, my_Layernorm, series_decomp
  7. import math
  8. import numpy as np
  9. class Model(nn.Module):
  10. """
  11. Autoformer is the first method to achieve the series-wise connection,
  12. with inherent O(LlogL) complexity
  13. """
  14. def __init__(self, configs):
  15. super(Model, self).__init__()
  16. self.seq_len = configs.seq_len
  17. self.label_len = configs.label_len
  18. self.pred_len = configs.pred_len
  19. self.output_attention = c
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/86314
推荐阅读
相关标签
  

闽ICP备14008679号