parser = argparse.ArgumentParser(description='Autoformer & Transformer family for Time Series Forecasting')# 是否进行训练
parser.add_argument('--is_training',type=int, default=1,help='status')# 模型前缀
parser.add_argument('--model_id',type=str, default='test',help='model id')# 选择模型(可选模型有Autoformer, Informer, Transformer,DLinear,NLinear)
parser.add_argument('--model',type=str, default='DLinear',help='model name, options: [Autoformer, Informer, Transformer]')# 数据选择
parser.add_argument('--data',type=str, default='ETTh1',help='dataset type')# 数据存放路径
parser.add_argument('--root_path',type=str, default='./data/',help='root path of the data file')# 数据完整名称
parser.add_argument('--data_path',type=str, default='ETTh1.csv',help='data file')# 预测类型(多变量预测、单变量预测、多元预测单变量)
parser.add_argument('--features',type=str, default='M',help='forecasting task, options:[M, S, MS]; M:multivariate predict multivariate, S:univariate predict univariate, MS:multivariate predict univariate')# 如果选择单变量预测或多元预测单变量,需要指定预测的列
parser.add_argument('--target',type=str, default='OT',help='target feature in S or MS task')# 数据重采样格式
parser.add_argument('--freq',type=str, default='h',help='freq for time features encoding, options:[s:secondly, t:minutely, h:hourly, d:daily, b:business days, w:weekly, m:monthly], you can also use more detailed freq like 15min or 3h')# 模型存放文件夹
parser.add_argument('--checkpoints',type=str, default='./checkpoints/',help='location of model checkpoints')# 时间窗口长度
parser.add_argument('--seq_len',type=int, default=96,help='input sequence length')# 先验序列长度
parser.add_argument('--label_len',type=int, default=48,help='start token length')# 要预测的序列长度
parser.add_argument('--pred_len',type=int, default=96,help='prediction sequence length')# 针对DLinear是否为每个变量(通道)单独建立一个线性层
parser.add_argument('--individual', action='store_true', default=False,help='DLinear: a linear layer for each variate(channel) individually')# 嵌入策略选择
parser.add_argument('--embed_type',type=int, default=0,help='0: default 1: value embedding + temporal embedding + positional embedding 2: value embedding + temporal embedding 3: value embedding + positional embedding 4: value embedding')# 编码器default参数为特征列数
parser.add_argument('--enc_in',type=int, default=7,help='encoder input size')# DLinear with --individual, use this hyperparameter as the number of channels# 解码器default参数与编码器相同
parser.add_argument('--dec_in',type=int, default=7,help='decoder input size')
parser.add_argument('--c_out',type=int, default=7,help='output size')# 模型宽度
parser.add_argument('--d_model',type=int, default=512,help='dimension of model')# 多头注意力机制头数
parser.add_argument('--n_heads',type=int, default=8,help='num of heads')# 模型中encoder层数
parser.add_argument('--e_layers',type=int, default=2,help='num of encoder layers')# 模型中decoder层数
parser.add_argument('--d_layers',type=int, default=1,help='num of decoder layers')# 全连接层神经元个数
parser.add_argument('--d_ff',type=int, default=2048,help='dimension of fcn')# 窗口平均线的窗口大小
parser.add_argument('--moving_avg',type=int, default=25,help='window size of moving average')# 采样因子数
parser.add_argument('--factor',type=int, default=1,help='attn factor')# 是否需要序列长度衰减
parser.add_argument('--distil', action='store_false',help='whether to use distilling in encoder, using this argument means not using distilling',
default=True)# drop_out率
parser.add_argument('--dropout',type=float, default=0.05,help='dropout')# 时间特征编码方式
parser.add_argument('--embed',type=str, default='timeF',help='time features encoding, options:[timeF, fixed, learned]')# 激活函数
parser.add_argument('--activation',type=str, default='gelu',help='activation')# 是否输出attention
parser.add_argument('--output_attention', action='store_true',help='whether to output attention in ecoder')# 是否进行预测
parser.add_argument('--do_predict', action='store_false'</