nok-halfspace / Transformer-Time-Series-Forecasting

383 stars 101 forks source link

one question about the model #10

Open ixjx opened 1 year ago

ixjx commented 1 year ago

in the model.py:

        self.encoder_layer = nn.TransformerEncoderLayer(d_model=feature_size, nhead=7, dropout=dropout)
        self.transformer_encoder = nn.TransformerEncoder(self.encoder_layer, num_layers=num_layers)        
        self.decoder = nn.Linear(feature_size,1)

the tranformer decoder is only a Linear layer, is there something I missd?

Xbotgo-Justin1 commented 3 months ago

for the author ,the decoder is the same with encoder

Bainaodai commented 1 month ago

What is “reindexed_id“ and How to Set It?