GithubHelp home page GithubHelp logo

xiaolongwu0713 / ts-extrinsic-regression Goto Github PK

View Code? Open in Web Editor NEW

This project forked from changweitan/ts-extrinsic-regression

0.0 0.0 0.0 8.21 MB

This repository contains the source code for time series regression.

License: GNU General Public License v3.0

Python 0.22% TypeScript 99.78%

ts-extrinsic-regression's Introduction

Time Series Extrinsic Regression

This repository contains the source code for Time Series Extrinsic Regression. We aim to learn the relationship between a time series and a scalar value. We note the similarity with a parallel field in the Statistics community known as Scalar-on-Function-Regression (SoFR) and is working on implementing those methods.

Data

The archive containing 19 time series regression datasets can be found at Monash UEA UCR Time Series Extrinsic Regression Archive. We recommend you to read the paper for a detailed discussion of the datasets and their sources. For demo, please use the data in the data folder provided in this repository

Models

The following models are implemented in this repository:

Classical ML models

  1. Support Vector Regression (SVR) - A wrapper function for sklearn SVR
  2. Random Forest Regressor (RF) - A wrapper function for sklearn RandomForestRegressor
  3. XGBoost (XGB) - A wrapper function for XGBoost package
  4. Linear Regression (LR) - A wrapper function for sklearn LinearRegression
  5. Ridge Regression (Ridge) - A wrapper function for sklearn RidgeCV

Deep Learning for TSC

  1. Fully Convolutional Network (FCN)
  2. Residual Network (ResNet)
  3. Inception Time (InceptionTime)

TSC models

  1. Random Convolutional Kernels Transform (Rocket)

Features Transform

Some simple feature transformation have been implemented.

  1. Principal Component Analysis (PCA)
  2. Functional Principal Component Analysis (FPCA)
  3. FPCA with BSpline Smoothing (FPCA-BSpline)

Code

The code is mainly divided as follows:

  • The demo.py file contains demo code for a single experiment run.
Arguments:
-d --data_path      : path to dataset
-p --problem        : dataset name
-r --regressor      : name of the model
-t --transformer    : name of the transformer
-i --iteration      : iteration number
-n --normalisation  : normalisation (none, standard, minmax)
  • The run_experiments file contains code to run a set of experiments.
  • The models folder contains the models used for regression.
  • The utils folder contains helper functions for the program.
  • After each run, the results will be saved to the output folder.

Dependencies

All python packages needed are listed in requirements.txt file and can be installed simply using the pip command.

Some of the main packages are:

Results

These are the results on the 19 Time series regression datasets from Monash UEA UCR Time Series Regression Archive. The initial benchmark results in the paper showed that a simple linear model such as Rocket performs best for the time series regression task. The full results can be obtained here.

image

Reference

If you use any part of this work, please cite:

@article{Tan2020TSER,
  title={Time Series Extrinsic Regression},
  author={Tan, Chang Wei and Bergmeir, Christoph and Petitjean, Francois and Webb, Geoffrey I},
  journal={arXiv preprint arXiv:2006.12672},
  year={2020}
}

Acknowledgement

We appreciate the data donation from all the donors. We would also like to thank Hassan Fawaz for providing the base code for Deep Learning models and Angus Dempster for providing the code for Rocket.

ts-extrinsic-regression's People

Contributors

changweitan avatar dependabot[bot] 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.