Skip to content

bibekk477/FUTURE_ML_02

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Stock Price Prediction Using LSTM This project is part of the ML Internship by FutureIntern and focuses on building a machine learning model using LSTM (Long Short-Term Memory networks) to predict future stock prices.

🎯 Objective To develop a machine learning model based on historical stock market data to estimate future stock prices. The project aims to apply deep learning techniques to capture temporal patterns in time series data for accurate stock forecasting.

πŸ›  Tools & Technologies Python β€” Core programming language Pandas β€” Data manipulation and analysis NumPy β€” Numerical computing Scikit-learn β€” Preprocessing, model evaluation, and scaling TensorFlow / Keras β€” Deep learning model (LSTM) yfinance β€” Fetching real-time historical stock data Matplotlib β€” Data visualization

πŸ“š Project Workflow

  1. Data Collection Use the yfinance API to download historical stock price data (e.g., closing prices).

  2. Data Preprocessing Handle missing values (if any). Normalize the data using MinMaxScaler. Create input sequences (e.g., use 60 previous days to predict the next day). Split the dataset into training and testing sets.

  3. Model Building Build an LSTM model using the Keras Sequential API.

Architecture: One or more LSTM layers Dropout layers for regularization Dense output layer for prediction

  1. Model Compiling Compile the model with a suitable optimizer, loss function, and evaluation metrics.

  2. Model Training Train the model and monitor both training and validation loss.

  3. Model Evaluation Evaluate using metrics like Mean Squared Error (MSE) and RΒ² Score. Visualize loss curves (training vs. validation).

  4. Prediction & Visualization Forecast stock prices on the test set. Plot actual vs. predicted prices for visual evaluation.

πŸ“ˆ Predict and Visualize Unseen Data (Next n Days) Predict stock prices for the next n days. Visualize the predicted prices using line plots.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors