← 开源
khuangaf

CryptocurrencyPrediction

Predict Cryptocurrency Price with Deep Learning

TutorialsML/AI fundamentalsJupyter Notebook
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
1.06k
Star
364
Fork
+1
本周
1
贡献者
创建于 2017-09-10 · 更新于 2026-10-09 · 今日第 11805 名
主要开发者
khuangaf

khuangaf/CryptocurrencyPrediction 排名第 11,805,有 1,064 个星标。

同类别比较

khuangaf/CryptocurrencyPrediction 排名第 11,805,此处有 8 个同类条目;PacktPublishing/Hands-On-Graph-Neural-Networks-Using-Python 排名第 11,818。

同类别比较
名称排名指标
dalmia/Deep-Learning-Book-Chapter-Summaries11,760
语言:
Jupyter Notebook
星标数:
1,070
分叉数:
312
简介:
Attempting to make the Deep Learning Book easier to understand.
zlotus/notes-LSJU-machine-learning11,776
语言:
Jupyter Notebook
星标数:
1,069
分叉数:
388
简介:
机器学习笔记
DjangoPeng/LLM-quickstart11,785
语言:
Jupyter Notebook
星标数:
1,067
分叉数:
591
简介:
Quick Start for Large Language Models (Theoretical Learning and Practical Fine-tuning) 大语言模型快速入门(理论学习与微调实战)
robbiebarrat/rapping-neural-network11,787
语言:
Python
星标数:
1,067
分叉数:
162
简介:
Rap song writing recurrent neural network trained on Kanye West's entire discography
PacktPublishing/Hands-On-Graph-Neural-Networks-Using-Python11,818
语言:
Jupyter Notebook
星标数:
1,061
分叉数:
298
简介:
Hands-On Graph Neural Networks Using Python, published by Packt
wdndev/llama3-from-scratch-zh11,821
语言:
Jupyter Notebook
星标数:
1,061
分叉数:
99
简介:
从零实现一个 llama3 中文版
Jane-xiaoer/claude-skill-web-clone11,838
语言:
JavaScript
星标数:
1,058
分叉数:
127
adeshpande3/Tensorflow-Programs-and-Tutorials11,840
语言:
Jupyter Notebook
星标数:
1,058
分叉数:
316
简介:
Implementations of CNNs, RNNs, GANs, etc
关键参数与规格
关键参数与规格
参数值
语言Jupyter Notebook
类别Tutorials
子类别ML/AI fundamentals
关键词Finance
星标数1,064
分叉数364
贡献者1
创建日期2017-09-10
更新日期2026-10-09
1 天星标数0
7 天星标数1
排名11,805
上次排名11,725
排名变化-80
7 天星标排名10,238
上次 7 天星标排名8,332
7 天星标排名变化-1,906
总星标排名10,644
上次总星标排名10,627
总星标排名变化-17
国家USA
README 摘录

Deep Learning for Cryptocurrency Price Prediction Introduction This repo makes use of the state-of-art Deep Learning algorithm to predict the price of Bitcoin, which has the potential to generalize to other cryptocurrency. It leverages models such as CNN and RNN implemented by Keras running on top of Tensorflow. You can find more detailed illustration in this blog post. Getting Started To run this repo, be sure to install the following environment and library: 1. 1 File Illustration There

are currently three different models: 1. py (1 dimensional CNN) The validation result is plotted in: 1. ipynb Data is collected from poloniex and parse to h5py file: 1. ipynb Run To run the prediction model, select one of the model. For instance, To run iPython file, you need to run jupyter notebook __Be sure to run DataCollection. ipynb first to create database for training models. __ Input & Output & Loss The input consists of a list of past Bitcoin data with

step size of 256. The output is the predicted value of the future data with step size of 16. Note that since the data is ticked every five minutes, the input data spans over the past 1280 minutes, while the output cover the future 80 minutes. The datas are scaled with MinMaxScaler provided by sklearn over the entire dataset. The loss is defined as Mean Square Error (MSE). 00029 | 114308 | | CNN | 2 | Leaky ReLU | 0. 00029 | 201718 | | CNN | 3 | Leaky

ReLU | 0. 00030 | 117947 | | CNN | 4 | Leaky ReLU | 0. 03217 | 12356304 | | LSTM | 1 | tanh + ReLU | 0. 00007 | 26649 | | LSTM | 1 | tanh + Leaky ReLU | 0. 00004 | 15364 | | GRU | 1 | tanh + ReLU | 0. 00004 | 17667 | | GRU | 1 | tanh + Leaky ReLU | 0. 00004 | 15474 | | Baseline (Lag) | - | - | - | 19122 | | Linear Regression | - | - | - | 19789 | Each row of the above table is the model that derives the best validation loss from the total 100 training epochs. From the above result, we can observe that LeakyReLU always seems to

yield better loss compared to regular ReLU. However, 4-layered CNN with Leaky ReLU as activation function creates a large validation loss, this can due to wrong deployment of model which might require re-validation. CNN model can be trained very fast (2 seconds/ epoch with GPU), with slightly worse performance than LSTM and GRU. The best model seems to be LSTM with tanh and Leaky ReLU as activation function, though 3-layered CNN seems to be better in capturing

local temporal dependency of data. _LSTM with tanh and Leaky ReLu as activation function. _ _3-layered CNN with Leaky ReLu as activation function. _ _Baseline_ _Linear Regression_ Update Regularization has been done, which can be viewed in PlotRegularization.

常见问题

记录了多少星标和分叉?

khuangaf/CryptocurrencyPrediction 有 1,064 个星标和 364 个分叉。

仓库排名是多少?

khuangaf/CryptocurrencyPrediction 排名第 11,805。

记录的语言和类别是什么?

khuangaf/CryptocurrencyPrediction 有 1,064 个星标,语言为 Jupyter Notebook,类别为 Tutorials。

哪个仓库排名最接近?

khuangaf/CryptocurrencyPrediction 与 PacktPublishing/Hands-On-Graph-Neural-Networks-Using-Python 比较,后者排名第 11,818,有 1,061 个星标。

README

Deep Learning for Cryptocurrency Price Prediction

Introduction

This repo makes use of the state-of-art Deep Learning algorithm to predict the price of Bitcoin, which has the potential to generalize to other cryptocurrency. It leverages models such as CNN and RNN implemented by Keras running on top of Tensorflow. You can find more detailed illustration in this blog post.

Getting Started

To run this repo, be sure to install the following environment and library:

  1. Python 2.7
  2. Tensorflow=1.2.0
  3. Keras=2.1.1
  4. Pandas=0.20.3
  5. Numpy=1.13.3
  6. h5py=2.7.0
  7. sklearn=0.19.1

File Illustration

There are currently three different models:

  1. LSTM.py
  2. GRU.py
  3. CNN.py (1 dimensional CNN)

The validation result is plotted in:

  1. Plot_LSTM.ipynb
  2. Plot_GRU.ipynb
  3. Plot_CNN.ipynb

Data is collected from poloniex and parse to h5py file:

  1. DataCollection.ipynb
  2. PastSampler.ipynb

Run

To run the prediction model, select one of the model. For instance,

python CNN.py

To run iPython file, you need to run jupyter notebook

jupyter notebook

Be sure to run DataCollection.ipynb and PastSampler.ipynb first to create database for training models.

Input & Output & Loss

The input consists of a list of past Bitcoin data with step size of 256. The output is the predicted value of the future data with step size of 16. Note that since the data is ticked every five minutes, the input data spans over the past 1280 minutes, while the output cover the future 80 minutes. The datas are scaled with MinMaxScaler provided by sklearn over the entire dataset. The loss is defined as Mean Square Error (MSE).

Result

Model #Layers Activation Validation Loss Test Loss (Scale Inverted)
CNN 2 ReLU 0.00029 114308
CNN 2 Leaky ReLU 0.00029 115525
CNN 3 ReLU 0.00029 201718
CNN 3 Leaky ReLU 0.00028 108700
CNN 4 ReLU 0.00030 117947
CNN 4 Leaky ReLU 0.03217 12356304
LSTM 1 tanh + ReLU 0.00007 26649
LSTM 1 tanh + Leaky ReLU 0.00004 15364
GRU 1 tanh + ReLU 0.00004 17667
GRU 1 tanh + Leaky ReLU 0.00004 15474
Baseline (Lag) - - - 19122
Linear Regression - - - 19789

Each row of the above table is the model that derives the best validation loss from the total 100 training epochs. From the above result, we can observe that LeakyReLU always seems to yield better loss compared to regular ReLU. However, 4-layered CNN with Leaky ReLU as activation function creates a large validation loss, this can due to wrong deployment of model which might require re-validation. CNN model can be trained very fast (2 seconds/ epoch with GPU), with slightly worse performance than LSTM and GRU. The best model seems to be LSTM with tanh and Leaky ReLU as activation function, though 3-layered CNN seems to be better in capturing local temporal dependency of data.

 ![](result/bitcoin2015to2017_close_LSTM_1_tanh_leaky_result.png) 

LSTM with tanh and Leaky ReLu as activation function.

 ![](result/bitcoin2015to2017_close_CNN_3_leaky_result.png) 

3-layered CNN with Leaky ReLu as activation function.

 ![](result/bitcoin2015to2017_close_rw.png) 

Baseline

 ![](result/bitcoin2015to2017_close_lr.png) 

Linear Regression

Update

Regularization has been done, which can be viewed in PlotRegularization.ipynb.

排名相邻
同类项目