Giter Site home page Giter Site logo

lstm-stock-prices's Introduction

Predicting stock prices with LSTM network

This project goal is to demonstrate how to use LSTM networks and apply in some real data.

Getting Started

In this repository, you will find the following notebook:

  • Moving Average: First look at the data, a SMA and EMA model
  • Sanity Check: A test with LSTM and the model used to make sure the model works
  • LSTM input and output: An explanation on how I manipulated the data to use as input/output for the model
  • LSTM Single Company: A LSTM model used to predict the closing price of a single company. Note that the notebooks ‘Single Company B’, ‘Single Company C’ and ‘Single Company D’ are extremely similar.
  • LSTM multi-companies prediction: A LSTM model used to predict the closing price of all four companies (A, B, C and D).

Prerequisites

The code was written in Python, and uses:

  • Pandas and Numpy (for data manipulation)
  • Matplotlib (for data visualisation)
  • Keras (for building and training the model)
  • sklearn (for data scaling)

Results

A LSTM network is not able to predict the closing price behaviour by only looking at its historical data.

lstm-stock-prices's People

Contributors

alexavierc avatar

Watchers

 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.