0
5

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 3 years have passed since last update.

明日のビットコイン価格を予知する

Posted at

#概要
乗るしかないビッグウェーブなのかを判断する。

#Prophet
とても簡単でそれっぽいことができるProphetに、Binanceのデータを入れてみる。

df = pd.read_csv('http://www.cryptodatadownload.com/cdd/Binance_BTCUSDT_d.csv', skiprows=[0])
df['y'] = df[['high', 'low']].mean(axis = 1)

(中略)

👇結果

乗るしかないこのビッグウェーブに。

#LSTM

適当()なパラメータを入れます。

scaler = MinMaxScaler()
n_input = 30
n_features = 1
generator = TimeseriesGenerator(train, train, length=n_input, batch_size=7)
model = Sequential()
model.add(LSTM(200, activation='relu', input_shape=(n_input, n_features)))
model.add(Dropout(0.15))
model.add(Dense(1))
model.compile(optimizer='adam', loss='mse')
model.fit_generator(generator,epochs=90)

👇結果

image.png

乗るべきではないこのビッグウェーブに。

0
5
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
0
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?