I hope to get your suggestions on how to solve the problem about transformer prediction. I used the transformer model in the code to predict the data and got the results shown in the following figure. The transformer predicted results are horizontal and cannot fit the original upward sloping data.

I hope to get your suggestions on how to solve the problem about transformer prediction. I used the transformer model in the code to predict the data and got the results shown in the following figure. The transformer predicted results are horizontal and cannot fit the original upward sloping data.