Giter Site home page Giter Site logo

pnjoki / stock-prediction-classification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from antonyalexos/stock-prediction-classification

0.0 0.0 0.0 14.96 MB

This is a project for stock price prediction with the use of Neural Networks.

Jupyter Notebook 100.00%

stock-prediction-classification's Introduction

Stock-Prediction-Classification

This repository is the implementation of the final project for the course ECE454 Machine Learning for Data Science and Analytics. The overall target is to predict the Goldman Sachs stock. The main algorith that we use fo this task is the LSTM. We ensure the quality of the algorithms by implementing a gain metric functions, which tells us how much we gain, if we trade every day based on the prediction of the algorithm. More specifically we created also a custom evaluation metric named Gain, which shows how much we profit or lose. It evaluates our performance based on if we had the same prediction with the way the market moved that day.

The Data Preprocessing

  • We collected the data from Yahoo API and from them we kept the Open, High, Low, Close and Volume.
  • We normalised the data and shifted them with the window method to be appropriate for the time series problem.
  • We then added more prices and indices such as NASDAQ, Hang Seng Index, NYSE, Nikkei 225, Bank of America, Barclays, Credit Suisse, JPMorgan, Morgan Stanley and VIX. From them we kept only Close.
  • We also added some technical indicators such as Moving Average 7 and 21, EMA, MACD, Bollinger Bands, Momentum and Log Momentum.
  • For the classification problem we transformed the data to 0 or 1, whether the price goes up or down in accordance to the previous day.
  • We also added 3 fourier transformations mostly to denoise the data and see some trends on the time series.

Overview of the files

  • stock_prediction_approach.ipynb: In this file we show the things that we have tried in order to make produce some very good results. In this file we are encountering the task as a Time Series Prediction pronlem.
  • stock_price_classification.ipynb: In this file we encounter the task as a binary classification problem in order to predict whether the price goes up or down the next day.

stock-prediction-classification's People

Contributors

antonyalexos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.