2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PyTorchを使った株価予想

2
Posted at

PyTorchを使った株価予想

https://qiita.com/creaith/items/f47c33e78fb97349b4c8
を参考にAnacondaとPyToachをインストール

メモ:PyToachをインストールするときにAnacondaを管理者権限で立ち上げないとエラーになった

https://github.com/melissa135/mlp_stock
のソースを使用する。
学習したAIで中国?のETFを売買したときの資産推移を予想してくれるようです。

READMEには以下のように書かれている。
(MLPは multi layer perceptronのこと)

===================
・Usage

  1. Run train_net.py to train a group of MLPs with sz_train.csv, saved in /MLPs.
  2. Run test_net.py to predict stock market trend (in sz_test.csv) using ensemble MLP.

・Result
The train error rate (black) and test error rate (red) of a single MLP, changing with epoches.
![](https://github.com/melissa135/mlp_stock/blob/master/error_rate.png

The red line is asset sequence if we buy/sell CISSM-ETF according to our ensemble MLP, comparing with CISSM (black).

===================

メモ:mlp_stock-masterの中のcsvには一、二、三、四、五という中国語文字が入っているため、train_net.pyを使用するとエラー。notepad++で1,2,3,4,5にreplaceして解決した。

train_net.pyとtest_net.pyを実行しグラフが作成されましたが、まだどういう事か理解が追い付いてないです。

理解が深まり次第更新していきます。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?