Giter Site home page Giter Site logo

rosdyana / going-deeper-with-convolutional-neural-network-for-stock-market-prediction Goto Github PK

View Code? Open in Web Editor NEW
126.0 7.0 69.0 5.48 MB

Repository for Going Deeper with Convolutional Neural Network for Stock Market Prediction

License: Apache License 2.0

Python 100.00%
resnet keras stock-market-prediction convolutional-neural-networks

going-deeper-with-convolutional-neural-network-for-stock-market-prediction's Introduction

Going Deeper with Convolutional Neural Network for Stock Market Prediction

Repository for Going Deeper with Convolutional Neural Network for Stock Market Prediction

Introduction

Predict the stock market price will go up or not in the near future.

Data Collection

  • Using Yahoo! Finance for time series data source
  • 50 Taiwan Companies from 0050.TW index.
  • Top 10 Indonesia Stock exchange companies.

Methodology

  • Using candlestick chart for input model
  • DeepCNN
  • ResNet 50
  • VGG16
  • VGG19
  • Randomforest
  • KNN

Usage

Prepare Environment

Recommended using virtual environment

python3 -m venv .env

Running on Python3.5

pip install -U -r requirements.txt

Prepare Dataset

  • Convert OHLCV stock market data to Candlestickchart
python run_binary_preprocessing.py <ticker> <tradingdays> <windows>

example

python run_binary_preprocessing.py 2880.TW 20 50
  • Generate dataset
python generatedata.py <pathdir> <origindir> <destinationdir>

example

python generatedata.py dataset 20_50/2880.TW dataset_2880TW_20_50
  • Remove alpha channel
cd /dataset/dataset_2880TW_20_50
find . -name "*.png" -exec convert "{}" -alpha off "{}" \;

Training

  • DeepCNN
python myDeepCNN.py -i <datasetdir> -e <numberofepoch> -d <dimensionsize> -b <batchsize> -o <outputresultreport>

example

python myDeepCNN.py -i dataset/dataset_2880TW_20_50 -e 50 -d 50 -b 8 -o outputresult.txt

Performance Evaluation

  • Accuracy
  • Specitivity
  • Sensitivity
  • MCC
  • F1

Citation

@misc{1903.12258,
Author = {Rosdyana Mangir Irawan Kusuma and Trang-Thi Ho and Wei-Chun Kao and Yu-Yen Ou and Kai-Lung Hua},
Title = {Using Deep Learning Neural Networks and Candlestick Chart Representation to Predict Stock Market},
Year = {2019},
Eprint = {arXiv:1903.12258},
}

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.