Git Product home page Git Product logo

detach_rocket's Introduction

repo logo



README

Official repository for Detach-ROCKET: Sequential feature selection for time series classification with random convolutional kernels.

Overview

This repository contains Python implementations of Sequential Feature Detachment (SFD) for feature selection and Detach-ROCKET for time-series classification. Developed primarily in Python and utilizing NumPy, scikit-learn, and sktime libraries, the core functionalities are encapsulated within the following classes:

  • DetachRocket: Detach-ROCKET model class. It is constructed by pruning an initial ROCKET, MiniRocket or MultiROCKET model using SFD and selecting the optimal size.

  • DetachMatrix: Class for applying Sequential Feature Detachment to any dataset matrix structured as (n_instances, n_features).

For a detailed explanation of the model and methods please refer to the article.

Installation

To install the required dependencies, execute:

pip install numpy scikit-learn sktime pyts
pip install git+https://github.com/gon-uri/detach_rocket --quiet

Usage

The model usage is the same as in the scikit-learn library.

# Instantiate Model
DetachRocketModel = DetachRocket('rocket', num_kernels=10000)

# Trian Model
DetachRocketModel.fit(X_train,y_train)

# Predict Test Set
y_pred = DetachRocketModel.predict(X_test)

For univariate time series, the shape of X_train should be (n_instances, n_timepoints).

For multivariate time series, the shape of X_train should be (n_instances, n_variables, n_timepoints).

Notebook Examples

Detailed usage examples can be found in the included Jupyter notebooks in the examples folder.

Upcoming Features

  • Built-in support for multilabel classification (DONE!).
  • Pytorch implementation of ROCKET, MiniRocket or MultiROCKET.

License

This project is licensed under the BSD-3-Clause License.

Citation

If you find these methods useful in your research, please cite the article:

APA

Uribarri, G., Barone, F., Ansuini, A., & Fransén, E. (2023). Detach-ROCKET: Sequential feature selection for time series classification with random convolutional kernels. arXiv preprint arXiv:2309.14518.

BIBTEX

@article{uribarri2023detach,
  title={Detach-ROCKET: Sequential feature selection for time series classification with random convolutional kernels},
  author={Uribarri, Gonzalo and Barone, Federico and Ansuini, Alessio and Frans{\'e}n, Erik},
  journal={arXiv preprint arXiv:2309.14518},
  year={2023}
}

repo logo

detach_rocket's People

Contributors

adriasolana avatar fede112 avatar gon-uri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

detach_rocket's Issues

Typo in DetachMatrix class

It seems to me that there is a typo in the DetachMatrix class

  self.multilabells
  _type = multilabel_type

instead of

   self.multilabel_type = multilabel_type

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.