Skip to content

emilyfane/crypto_time_series_quantum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryptocurrency Forecasting with Quantum Machine Learning

This repository contains several (quantum) machine learning algorithms to predict cryptocurrency prices.

Summary

Cryptocurrencies are notoriously volatile and challenging to predict, however, there is a great financial incentive in predicting their value. The purpose of this project is to compare quantum and classical machine learning methods for time series forecasting of cryptocurrency. In particular, this project analyzes the value of Ethereum, between 2015 and 2021 Kaggle Ethereum Data - Arpit Verma. There is a base model (model.py) used for loading and preprocessing data, and writing and plotting results, and the specific machine learning models (conv_model.py, q_seq_model.py) inherit from this model and implement functions for training and testing data. This project includes implementations of CNN, CNN with a quantum layer, and a custom variational quantum algorithm.

Usage

First, create a conda environemnt for PennyLane. Then install requirements:

pip3 install -r requirements.txt

To run, script:

cd src
python3 main.py

Data

The data used is the price of the Ethereum cryptocurrency 2015 - 2021, including the Open, High, Low, Close, Adjusted Close, and Volume for each day. The dataset used is Kaggle Ethereum Data - Arpit Verma.

Software and Services

Software and services used include:

  • PennyLane: for the Hybrid CNN and Variational Algorithm
  • Braket: for running on simulators
  • Torch: for CNN and Hybrid CNN
  • Scikit-Learn: for preprocessing data
  • Matplotlib: for plotting data
  • Pandas and Numpy: for representing data

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages