Home   >   User Resources   >   Online Help   >   apaPatternRecognition.ShapeletScoresBinary
 

 

Function index Version 3.0.0

apaPatternRecognition.ShapeletScoresBinary(trainingSeriesMatrix, labels, shapeletSourceSeries, shapeletStarts, windowSize, sourceName)

Excel=apaPatternRecognition.ShapeletScoresBinary(trainingSeriesMatrix, labels, shapeletSourceSeries, shapeletStarts, windowSize, sourceName)

Result

Scores candidate shapelets for binary classification, based on the separation of the best-match distances between training series with label 0 and label 1.

Syntax

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 build the candidate shapelets

shapeletStarts: vector of 1-based start indices of the candidate shapelets

windowSize: length of the subsequences (window size)

sourceName: label stored with each shapelet. Default value: “Manual”

Algorithm

For each candidate shapelet and training series, the best-match distance is calculated, i.e. the smallest z-normalized Euclidean distance to any subsequence of the training series.

Remarks

The result contains a header row and one row per shapelet with the columns Rank, ShapeletId, Source, StartIndex, Length, Score, MeanDistanceLabel0, MeanDistanceLabel1, StdDistanceLabel0, StdDistanceLabel1 and Selected. StartIndex is the 1-based start index of the shapelet in shapeletSourceSeries, so the table can be passed on unchanged to apaPatternRecognition.SelectTopNonRedundantShapelets.