Skip to content

This project aims to forecast stock prices using a deep learning model based on historical data. The model utilizes a sequence-to-sequence architecture with attention mechanisms for time series forecasting. The implementation is done using TensorFlow.

Notifications You must be signed in to change notification settings

AdimisDev/Stock-Price-Forecasting-using-Deep-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Stock Price Forecasting using Deep Learning

This project aims to forecast stock prices using a deep learning model based on historical data. The model utilizes a sequence-to-sequence architecture with attention mechanisms for time series forecasting. The implementation is done using TensorFlow.

Prerequisites

Make sure you have the following installed:

  • Python 3.x
  • TensorFlow
  • Numpy
  • Matplotlib
  • Seaborn
  • Pandas
  • Scikit-learn

You can install the required libraries using the following command:

pip install tensorflow numpy matplotlib seaborn pandas scikit-learn

Getting Started

  1. Clone the repository to your local machine:
git clone https://github.com/adimis-ai/cnn-seq2seq_stock_market_prediction.git
  1. Download the dataset:

    The dataset used for this project can be found in the dataset directory. Make sure to place the dataset file GOOG-year.csv in the correct location (../dataset/GOOG-year.csv), relative to the location of the Python script.

  2. Open the Python script stock_forecasting.py in your preferred Python IDE or text editor.

  3. Execute the Python script to run the stock price forecasting model.

Usage

The script defines a deep learning model and uses it to forecast stock prices based on historical data. The model is trained using the training dataset and tested on the test dataset.

Please note that the training process might take some time, depending on your hardware and the number of epochs specified in the script.

Results

The script will generate a plot showing the forecasted stock prices (based on 10 simulations) and the true stock prices from the test dataset. The average accuracy of the forecasts will also be displayed on the plot.

About

This project aims to forecast stock prices using a deep learning model based on historical data. The model utilizes a sequence-to-sequence architecture with attention mechanisms for time series forecasting. The implementation is done using TensorFlow.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published