Giter Site home page Giter Site logo

zhangsj0608 / stock_market_prediction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hutauf/stock_market_prediction

0.0 2.0 0.0 10.35 MB

This is the code for "Stock Market Prediction" by Siraj Raval on Youtube

License: Apache License 2.0

Jupyter Notebook 100.00%

stock_market_prediction's Introduction

Stock Market Prediction

Coding Challenge - Due Date, Thursday Sept 14 12 PM PST

I tried to predict the MSFT stock price, using S&P 500 index (kind of a baseline stock market movement), the GDP of the last year ("how much are people able to afford?") and the mean temperature on the trading day ("how did the traders feel on that day?").

Overview

I wanted to use DeepMind's WaveNet, as it's meant for time series analysis and brings us awesome results for audio/TTS/music generation. I wanted to bring this technique outside of audio analysis, in this case to the stock market.

We need to have a local conditioning available to be able to cope with changing constraints, which is to my knowledge only available inside this repository and not well tested: https://github.com/dannybtran/tensorflow-wavenet

As it expects audio input, I will just write the stock price data into a wav file and put it into the wavenet.

It didnt work very well using the actual value, as it's almost the same all the time (even if scaled), so I tried using the daily change in percent as input.

Results

res

As we can see, MSFT should have crashed according to wavenet :) It seems like it really likes the -3% daily chance.

Credits

Thanks dannybtran for the implementation of local conditioning

Thanks ibab for implementing wavenet in tensorflow

Thanks DeepMind for WaveNet

stock_market_prediction's People

Contributors

llsourcell avatar

Watchers

James Cloos avatar zsj_thu 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.