Bianace Prediction Pytorch Model

Overview

Bianace Prediction Pytorch Model

Main Results

ETHUSDT from 2021-01-01 00:00:00 to 2021-12-01 00:00:00

Time interval ROI
1d (Human) 2.74%
1d (Model) 125.05%
4h (Human) 36.86%
4h (Model) 300.37%
1h (Human) 37.55%
1h (Model) 393.66%

BTCUSDT from 2021-01-01 00:00:00 to 2021-12-01 00:00:00

Time interval ROI
1d (Human) 3.11%
1d (Model) 30.08%
4h (Human) 18.30%
4h (Model) 30.67%
1h (Human) 19.79%
1h (Model) 32.07%

Getting started

Environment

  • Test OS: Ubuntu 16.04 LTS
  • Python version: 3.8

Preparation

  • Create folders.
mkdir images
mkdir checkpoints
  • Please run pip install –r requirements.txt to install the needed libraries.

Dataset

Binance Public Data

  • Clone the repo.
  • Follow the instruction to download required data.
# ETHUSDT
python download-kline.py -s ETHUSDT -startDate 2017-08-01 -endDate 2021-12-01

# BTCUSDT
python download-kline.py -s BTCUSDT -startDate 2017-08-01 -endDate 2021-12-01
  • It will download the required data as below. Unzip the zip files under the 1h, 4h and 1d directories.
binance_prediction_pytorch
    `-- binance-public-data
        `-- data
            `-- data
                `-- spot
                    |-- daily
                    `-- monthly
                        `-- klines
                            |-- ETHUSDT
                            `-- BTCUSDT
  • Then soft link the data directory to the repo root as below.
binance_prediction_pytorch
    |-- binance-public-data
    `-- data
        `-- spot
            |-- daily
            `-- monthly
                `-- klines
                    |-- ETHUSDT
                    `-- BTCUSDT

Experiments

Training

  • Run training and evaluation on ETHUSDT. It will store the checkpoints under checkpoints with ticker name and time interval if don't specify the checkpoint path with --ckpt.
# 1d
./run.sh ETHUSDT 1d

# 4h
./run.sh ETHUSDT 4h --sell_rate 0.03

# 1h
./run.sh ETHUSDT 1h --sell_rate 0.03
  • Run training and evaluation on BTCUSDT
# 1d
./run.sh BTCUSDT 1d

# 4h
./run.sh BTCUSDT 4h --sell_rate 0.03

# 1h
./run.sh BTCUSDT 1h --sell_rate 0.03

Inference

  • Specify the checkpoint path with eval mode to only do the inference.
./run.sh ETHUSDT 1h --sell_rate 0.03 --ckpt ${YOUR_CHECKPOINT_PATH} --eval
You might also like...
nfelo: a power ranking, prediction, and betting model for the NFL

nfelo nfelo is a power ranking, prediction, and betting model for the NFL. Nfelo take's 538's Elo framework and further adapts it for the NFL, hence t

A hybrid framework (neural mass model + ML) for SC-to-FC prediction

The current workflow simulates brain functional connectivity (FC) from structural connectivity (SC) with a neural mass model. Gradient descent is applied to optimize the parameters in the neural mass model.

Attention-based CNN-LSTM and XGBoost hybrid model for stock prediction

Attention-based CNN-LSTM and XGBoost hybrid model for stock prediction Requirements The code has been tested running under Python 3.7.4, with the foll

😇A pyTorch implementation of the DeepMoji model: state-of-the-art deep learning model for analyzing sentiment, emotion, sarcasm etc

------ Update September 2018 ------ It's been a year since TorchMoji and DeepMoji were released. We're trying to understand how it's being used such t

Convert Pytorch model to onnx or tflite, and the converted model can be visualized by Netron
Convert Pytorch model to onnx or tflite, and the converted model can be visualized by Netron

Convert Pytorch model to onnx or tflite, and the converted model can be visualized by Netron

PyTorch implementation for COMPLETER: Incomplete Multi-view Clustering via Contrastive Prediction (CVPR 2021)
PyTorch implementation for COMPLETER: Incomplete Multi-view Clustering via Contrastive Prediction (CVPR 2021)

Completer: Incomplete Multi-view Clustering via Contrastive Prediction This repo contains the code and data of the following paper accepted by CVPR 20

A pytorch implementation of MBNET: MOS PREDICTION FOR SYNTHESIZED SPEECH WITH MEAN-BIAS NETWORK

Pytorch-MBNet A pytorch implementation of MBNET: MOS PREDICTION FOR SYNTHESIZED SPEECH WITH MEAN-BIAS NETWORK Training To train a new model, please ru

Wind Speed Prediction using LSTMs in PyTorch
Wind Speed Prediction using LSTMs in PyTorch

Implementation of Deep-Forecast using PyTorch Deep Forecast: Deep Learning-based Spatio-Temporal Forecasting Adapted from original implementation Setu

Model search is a framework that implements AutoML algorithms for model architecture search at scale
Model search is a framework that implements AutoML algorithms for model architecture search at scale

Model search (MS) is a framework that implements AutoML algorithms for model architecture search at scale. It aims to help researchers speed up their exploration process for finding the right model architecture for their classification problems (i.e., DNNs with different types of layers).

Owner
RoyYang
M.S. student @ VSLab
RoyYang
Doge-Prediction - Coding Club prediction ig

Doge-Prediction Coding Club prediction ig Basically: Create an application that

null 1 Jan 10, 2022
In this project we investigate the performance of the SetCon model on realistic video footage. Therefore, we implemented the model in PyTorch and tested the model on two example videos.

Contrastive Learning of Object Representations Supervisor: Prof. Dr. Gemma Roig Institutions: Goethe University CVAI - Computational Vision & Artifici

Dirk Neuhäuser 6 Dec 8, 2022
Step by Step on how to create an vision recognition model using LOBE.ai, export the model and run the model in an Azure Function

Step by Step on how to create an vision recognition model using LOBE.ai, export the model and run the model in an Azure Function

El Bruno 3 Mar 30, 2022
[ECCVW2020] Robust Long-Term Object Tracking via Improved Discriminative Model Prediction (RLT-DiMP)

Feel free to visit my homepage Robust Long-Term Object Tracking via Improved Discriminative Model Prediction (RLT-DIMP) [ECCVW2020 paper] Presentation

Seokeon Choi 35 Oct 26, 2022
TalkNet 2: Non-Autoregressive Depth-Wise Separable Convolutional Model for Speech Synthesis with Explicit Pitch and Duration Prediction.

TalkNet 2 [WIP] TalkNet 2: Non-Autoregressive Depth-Wise Separable Convolutional Model for Speech Synthesis with Explicit Pitch and Duration Predictio

Rishikesh (ऋषिकेश) 69 Dec 17, 2022
Implementation of FitVid video prediction model in JAX/Flax.

FitVid Video Prediction Model Implementation of FitVid video prediction model in JAX/Flax. If you find this code useful, please cite it in your paper:

Google Research 62 Nov 25, 2022
A modified version of DeepMind's Alphafold2 to divide CPU part (MSA and template searching) and GPU part (prediction model)

ParallelFold Author: Bozitao Zhong This is a modified version of DeepMind's Alphafold2 to divide CPU part (MSA and template searching) and GPU part (p

Bozitao Zhong 77 Dec 22, 2022
How to Become More Salient? Surfacing Representation Biases of the Saliency Prediction Model

How to Become More Salient? Surfacing Representation Biases of the Saliency Prediction Model

Bogdan Kulynych 49 Nov 5, 2022
Sign Language is detected in realtime using video sequences. Our approach involves MediaPipe Holistic for keypoints extraction and LSTM Model for prediction.

RealTime Sign Language Detection using Action Recognition Approach Real-Time Sign Language is commonly predicted using models whose architecture consi

Rishikesh S 15 Aug 20, 2022
Using Streamlit to host a multi-page tool with model specs and classification metrics, while also accepting user input values for prediction.

Predicitng_viability Using Streamlit to host a multi-page tool with model specs and classification metrics, while also accepting user input values for

Gopalika Sharma 1 Nov 8, 2021