class_docstr: Moving average block to highlight the trend of time series
class_docstr_tok: ["Moving","average","block","to","highlight","the","trend","of","time","series"]
code: def __init__(self, kernel_size, stride):
      super(MovingAvg, self).__init__()
      self.kernel_size = kernel_size
      self.avg = nn.AvgPool1d(
          kernel_size=kernel_size, stride=stride, padding=0
      )
  
imports: import numpy
  from typing import Optional
  import torch
  import torch.nn
  import torch.nn.functional
  from ..common._modules import DataEmbedding
  from ..common._base_windows import BaseWindows
  from ..losses.pytorch import MAE
label_desc: Use image node_id 1 to create a new MovingAvg object from inherited base classes: nn with example: obj = MovingAvg(kernel_size, stride)