Home

Awesome

README

Francisco Bischoff - 03 Mar 2020

<!-- README.md is generated from README.Rmd. Please edit that file --> <img src="man/figures/logo.png" align="right" style="float:right;" />

Time Series with Matrix Profile

<!-- badges: start -->

Packagist lifecycle CRAN
version CRAN
Downloads CircleCI build
status

<!-- badges: end -->
BuildDev
Linux x86_64Build StatusBuild Status
OSXBuild StatusBuild Status
WindowsAppVeyor build statusAppVeyor build status
Coveragecodecovcodecov

Overview

R Functions implementing UCR Matrix Profile Algorithm (http://www.cs.ucr.edu/~eamonn/MatrixProfile.html).

This package allows you to use the Matrix Profile concept as a toolkit.

This package provides:

<!-- end list -->
# Basic workflow:
matrix <- tsmp(data, window_size = 30) %>%
  find_motif(n_motifs = 3) %T>%
  plot()

# SDTS still have a unique way to work:
model <- sdts_train(data, labels, windows)
result <- sdts_predict(model, data, round(mean(windows)))

Please refer to the User Manual for more details.

Please be welcome to suggest improvements.

Performance on an Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz using a random walk dataset

set.seed(2018)
data <- cumsum(sample(c(-1, 1), 40000, TRUE))

Current version benchmark

Elapsed Time(s)Data SizeWindow SizeThreadsLang
mpx_par0.594000010008Rcpp
mpx1.944000010001Rcpp
stomp_par38.904000010008R
stomp85.134000010001R
scrimp123.074000010001R
stamp_par925.454000010008R
stamp3776.864000010001R

Installation

# Install the released version from CRAN
install.packages("tsmp")

# Or the development version from GitHub:
# install.packages("devtools")
devtools::install_github("matrix-profile-foundation/tsmp")

Currently available Features

Roadmap

Other projects with Matrix Profile

Matrix Profile Foundation

Our next step unifying the Matrix Profile implementation in several programming languages.

Visit: Matrix Profile Foundation

Code of Conduct

Please note that the ‘tsmp’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.