Code Monkey home page Code Monkey logo

tsf-hd-ohio's Introduction

TSF-OHIO

The current code is running based on a patient's data (ID=540) in the Ohio dataset.

You should have a subdirectory called "processedcsv" with "ohio540.csv" in it.

To run the code:

python main.py --data ohio540

TSF-HD

Python PyTorch Version

This project contains the Pytorch implementation of the following paper:

Title: A Novel Hyperdimensional Computing Framework for Online Time Series Forecasting on the Edge

Introduction

We present a novel framework for efficient time series forecasting in edge computing. It departs from traditional, resource-intensive deep learning methods, embracing hyperdimensional computing (HDC) for a more efficient approach. The framework includes two models: the Autoregressive Hyperdimensional Computing (AR-HDC) and the Sequence-to-Sequence HDC (Seq2Seq-HDC). These models are designed to reduce inference times and improve accuracy in both short-term and long-term forecasting, making them ideal for resource-limited edge computing scenarios

TSF-HD

Requirements

  • Python 3.10.12
  • numpy==1.26.3
  • pandas==2.1.4
  • scikit-learn==1.3.2
  • torch==2.1.2
  • tqdm==4.66.1

Please install the required packages listed in the requirements.txt file using the following command :

pip install -r requirements.txt

Benchmarking

1. Data preparation

We follow the same data formatting as the Informer repo (https://github.com/zhouhaoyi/Informer2020), which also hosts the raw data. Please put all raw data (csv) files in the ./data folder.

2. Run experiments

To replicate our results on the ETT, ECL, Exchange, Illness, and WTH datasets, run

chmod +x scripts/*.sh
bash .scripts/run.sh

3. Arguments

Method: Our implementation supports the following training strategies:

  • AR-HDC: Autoregressive Hyperdimensional Computing Framework
  • Seq2Seq-HDC: Sequence-to-Sequence Hyperdimensional Computing Framework

You can specify one of the above method via the --method argument.

Dataset: Our implementation currently supports the following datasets: Electricity Transformer - ETT (including ETTh1, ETTh2, ETTm1, and ETTm2), ECL, Exchange, Illness and WTH. You can specify the dataset via the --data argument.

Other arguments: Other useful arguments for experiments are:

  • --hvs_len: Dimension of the hyperspace: e.g. D = 1000 ,
  • --seq_len: look-back windows' length, set to 2 * ฯ„ by default,
  • --pred_len: forecast windows' &tau length

4. Results

TSF-HD TSF-HD

Citation

If you find this repository useful in your research, please consider citing the following papers:

@misc{title={A Novel Hyperdimensional Computing Framework for Online Time Series Forecasting on the Edge}, 
      year={2024},
      eprint={2402.01999},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

tsf-hd-ohio's People

Contributors

tsfhd2024 avatar cgxxcg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.