-
Notifications
You must be signed in to change notification settings - Fork 2
Usage
Here, we will rely on an example to illustrate how to use the timeSeriesClassification package to classify time series data.
Download the ECG5000 dataset.
Load the train dataset ECG5000_TRAIN.arff in the Weka explorer.

In the explorer, go to Classify and add ECG5000_TEST.arff file as the test set.

Then, configure the classifier by selecting Lazy > Ibk > Choose > DTWSearch

Now you can run the classifier with the DTWDistance function, you should obtain the following result:

BTW, the accuracy using 1NN with the Euclidean Distance instead of DTW for this dataset is 92.2444%.
For using the NumerosityReduction filter. In the Weka explorer go to Choose > weka > filters > supervised > instance > NumerosityReduction and select the percentage of instances to be removed

After applying the filter with percentageToRemove = 50, the dataset will contain half of the original instances, while preserving the representativeness of each one of the classes for classification
