Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

LSTM model with Optuna hyperparameter optimization for stock price prediction #9

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DarthCoder501
Copy link

This code introduces an LSTM-based model for stock price prediction, enhanced with Optuna hyperparameter optimization. The code includes:

  1. Data preprocessing with new features like 7-Day SMA, 14-Day EMA, MACD, Stochastic Oscillator, and ATR to capture market trends and volatility.

  2. Model architecture with LSTM layers, dropout for overfitting prevention, and Adam optimizer with MSE loss.

  3. Hyperparameter optimization using Optuna to fine-tune:

  • Number of LSTM units
  • Dropout rate
  • Learning rate
  • Batch size
  • Number of epochs
  1. Evaluation using metrics like MAE, MAPE, MSE, and RMSE, comparing non-optimized and optimized models.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant