Question: I ' m working on a time series analysis project for stock price prediction using LSTM ( Long Short - Term Memory ) neural networks.
Im working on a time series analysis project for stock price prediction using LSTM Long ShortTerm Memory neural networks. Here are the details:
Dataset characteristics:
Time period: months of historical data
Features: Two columns
month: time sequence monthly
close: monthly closing stock prices
My approach:
Plan to use all data for training
Evaluate using fold crossvalidation
Predict the next months of stock prices
Questions:
Is my dataset size months sufficient for LSTM implementation in stock price prediction?
What would be the most appropriate way to:
Basic data preprocessing
Split the data
Structure the LSTM model
Validate the results
Is fold crossvalidation suitable for this time series data?
What would be the recommended sequence length lookback period for the LSTM model?
How can I improve the model's accuracy for month ahead predictions?
Please provide:
Suggested code structure
Best practices for stock price prediction using LSTM
Alternative validation methods if fold crossvalidation isn't suitable
Recommendations for feature engineering with this limited dataset
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
