TSClassifier: Time Seriess Classifier

Description Usage Format Details Methods Fields Examples

Description

Allows training and predicting on time-series classification data. Internally writes the data to an .arff file and reads it from the command line in the Java Virtual Machine. In some cases, the memory of the JVM is not sufficient. In this case, the memory for the JVM can be set e.g. to 2 GB by setting options(java.options = "-Xmx2048m") before loading the package.

Usage

1

Format

An object of class R6ClassGenerator of length 24.

Details

Expects the data to either be a data.frame or a character path to a data set in the '.arff' format. In case a data.frame is provided, the data is saved to '.$model_path' and then read into the JVM from there. The target variable's name is assumed to be 'target'.

Methods

Fields

Examples

1
2
3
4
5
  data = data.frame(matrix(rnorm(300), nrow = 30))
  data$class = factor(sample(letters[1:2], 10, replace = TRUE))
  tsc = TSClassifier$new("timeseriesweka.classifiers.BOSS")
  tsc$train(data[1:15,], target = "class", par_vals = list(setMaxEnsembleSize = 1))
  p = tsc$predict(data[10:20,])

compstat-lmu/TSClassification documentation built on Nov. 18, 2019, 6:56 a.m.