GithubHelp home page GithubHelp logo

mfzhang / stockprediction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from suzhiba/stockprediction-1

0.0 2.0 0.0 151 KB

決定木、SVM、LSTMを使った株価変動予測

License: BSD 2-Clause "Simplified" License

Python 99.23% Shell 0.77%

stockprediction's Introduction

StockPrediction

必要なもの

  • Python 3
  • pyenv

インストール手順

sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
pyenv install 3.6.6
source mkvenv.src.sh

必要なパッケージをインストール

pip install requests
pip install beautifulsoup4
pip install --no-wheel numpy
pip install sklearn
pip install scipy
pip install pandas
pip install tensorflow
pip install keras
pip install matplotlib

mkvenv.src.sh

virtualenv に StockPrediction という名前で環境を作成します。すでに環境がある場合は activate します。本リポジトリにある Python プログラムを動かす前に、 source mkvenv.src.sh します。

Scraper

株価データをダウンロードします。ダウンロードする銘柄は targets.txt で設定します。 targets.txt はタブ区切りテキストファイルです。1列目に銘柄コード、2列目に株価データを保存するファイル名を指定します。 RunScraper.sh を実行すると Scraper が動きます。

LSTM6

LSTM を使って株価の変動を予測します。 Scraper が生成した株価データを用いて、株価の変動を予測します。 LSTM6/StockPrediction.py を実行すると学習とテストが実行されます。

Product/LSTM

LSTM を使って株価の変動を予測します。 Scraper が生成した株価データを用いて、株価の変動を予測します。 RunLstmPredict.sh を実行すると翌日の値動きを予測します。

junk

現状までの格闘の記録です。結果がイマイチなものが全てここに詰まっています。

成績

参考

stockprediction's People

Contributors

stuckedjp avatar

Watchers

 avatar  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.