I have been able to predict the result through single input, such as stock data, and forecast the following data through input of the closing price of the stock. Such prediction effect is not good, so I want to use more characteristic data to predict the closing price, such as trading volume, opening price and so on. However, I also encountered the problem of input dimension, the data input shape was (512,) (my 'context_len' set 512); With multiple inputs, the data input shape is (512, 5) (I used 5 features), and the following error occurs:
ValueError: Input shape must have rank matching LHS. LHS expects rank 2 but actual input has rank 3
I have been able to predict the result through single input, such as stock data, and forecast the following data through input of the closing price of the stock. Such prediction effect is not good, so I want to use more characteristic data to predict the closing price, such as trading volume, opening price and so on. However, I also encountered the problem of input dimension, the data input shape was (512,) (my 'context_len' set 512); With multiple inputs, the data input shape is (512, 5) (I used 5 features), and the following error occurs:
So how do I solve this problem?