Need help with rocket?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

206 Stars 29 Forks GNU General Public License v3.0 23 Commits 0 Opened issues


ROCKET: Exceptionally fast and accurate time series classification using random convolutional kernels

Services available


Need anything else?

Contributors list

No Data


ROCKET: Exceptionally fast and accurate time series classification using random convolutional kernels.

Data Mining and Knowledge Discovery / arXiv:1910.13051 (preprint)

Most methods for time series classification that attain state-of-the-art accuracy have high computational complexity, requiring significant training time even for smaller datasets, and are intractable for larger datasets. Additionally, many existing methods focus on a single type of feature such as shape or frequency. Building on the recent success of convolutional neural networks for time series classification, we show that simple linear classifiers using random convolutional kernels achieve state-of-the-art accuracy with a fraction of the computational expense of existing methods. Using this method, it is possible to train and test a classifier on all 85 ‘bake off’ datasets in the UCR archive in < 2 h, and it is possible to train a classifier on a large dataset of more than one million time series in approximately 1 h.

Please cite as:

  author = {Dempster, Angus and Petitjean, Fran\c{c}ois and Webb, Geoffrey I},
  title = {ROCKET: Exceptionally fast and accurate time classification using random convolutional kernels},
  year = {2020},
  journal = {Data Mining and Knowledge Discovery},
  doi = {}


An implementation of ROCKET (with basic multivariate capability) is available through sktime. See the examples.


MINIROCKET is up to 75× faster than ROCKET on larger datasets.


UCR Archive




  • Python;
  • Numba;
  • NumPy;
  • scikit-learn (or equivalent).


from rocket_functions import generate_kernels, apply_kernels
from sklearn.linear_model import RidgeClassifierCV

[...] # load data, etc.

generate random kernels

kernels = generate_kernels(X_training.shape[-1], 10_000)

transform training set and train classifier

X_training_transform = apply_kernels(X_training, kernels) classifier = RidgeClassifierCV(alphas = np.logspace(-3, 3, 10), normalize = True), Y_training)

transform test set and predict

X_test_transform = apply_kernels(X_test, kernels) predictions = classifier.predict(X_test_transform)

Reproducing the Experiments

-d --dataset_names : txt file of dataset names
-i --input_path    : parent directory for datasets
-o --output_path   : path for results
-n --num_runs      : number of runs (optional, default 10)
-k --num_kernels   : number of kernels (optional, default 10,000)

Examples: > python -d bakeoff.txt -i ./Univariate_arff -o ./ > python -d additional.txt -i ./Univariate_arff -o ./ -n 1 -k 1000

-tr --training_path : training dataset (csv)
-te --test_path     : test dataset (csv)
-o  --output_path   : path for results
-k  --num_kernels   : number of kernels

Examples: > python -tr training.csv -te test.csv -o ./ -k 100 > python -tr training.csv -te test.csv -o ./ -k 1000


We thank Professor Eamonn Keogh and all the people who have contributed to the UCR time series classification archive. Figures in our paper showing the ranking of different classifiers and variants of ROCKET were produced using code from Ismail Fawaz et al. (2019).


We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.