apaPatternRecognition.SelectTopNonRedundantShapelets(scoredShapelets, trainingSeriesMatrix, labels, shapeletSourceSeries, shapeletStarts, windowSize, topK, maxDistanceCorrelation, sourceName)
=apaPatternRecognition.SelectTopNonRedundantShapelets(scoredShapelets, trainingSeriesMatrix, labels, shapeletSourceSeries, shapeletStarts, windowSize, topK, maxDistanceCorrelation, sourceName)Result
Selects the top non-redundant shapelets from a scored shapelet table, filtering shapelets with highly correlated distance profiles across the training series.
Syntax
scoredShapelets: scored shapelet matrix as returned by apaPatternRecognition.ShapeletScoresBinary or apaPatternRecognition.ShapeletScoresBinary.Auto
trainingSeriesMatrix: r x n matrix of training series, one series per column
labels: 1 x n or n x 1 vector of binary labels (0 or 1), one per training series
shapeletSourceSeries: data vector containing the source time series used to rebuild the candidate shapelets
shapeletStarts: vector of 1-based start indices of the candidate shapelets
windowSize: length of the subsequences (window size)
topK: maximum number of shapelets to select. Default value: 10
maxDistanceCorrelation: maximum absolute correlation between the distance profiles of two selected shapelets, between 0 and 1. Default value: 0.95
sourceName: label stored with each rebuilt shapelet. Default value: “Manual”
Algorithm
For each shapelet, the distance profile is calculated, i.e. the vector of best-match distances across all training series.
Remarks
The result has the same columns as apaPatternRecognition.ShapeletScoresBinary, with the column Selected indicating the selected shapelets.
