Compute features on an input time series dataset
calculate_features(
data,
feature_set = c("catch22", "feasts", "tsfeatures", "kats", "tsfresh", "tsfel",
"quantiles", "moments"),
features = NULL,
catch24 = FALSE,
tsfresh_cleanup = FALSE,
use_compengine = FALSE,
seed = 123,
z_score = FALSE,
n_jobs = 0,
warn = TRUE
)object of class feature_calculations that contains the summary statistics for each feature
tbl_ts containing the time series data
character or vector of character denoting the set of time-series features to calculate. Can be one of "catch22", "feasts", "tsfeatures", "tsfresh", "tsfel", "kats", "quantiles", and or "moments"
named list containing a set of user-supplied functions to calculate on data. Each function should take a single argument which is the time series. Defaults to NULL for no manually-specified features. Each list entry must have a name as calculate_features looks for these to name the features. If you don't want to use the existing feature sets and only compute those passed to features, set feature_set = NULL
Boolean specifying whether to compute catch24 in addition to catch22 if catch22 is one of the feature sets selected. Defaults to FALSE
Boolean specifying whether to use the in-built tsfresh relevant feature filter or not. Defaults to FALSE
Boolean specifying whether to use the "compengine" features in tsfeatures. Defaults to FALSE to provide immense computational efficiency benefits
integer denoting a fixed number for R's random number generator to ensure reproducibility. Defaults to 123
Boolean specifying whether to z-score the time-series before computing features. Defaults to FALSE
integer denoting the number of parallel processes to use if "tsfresh" or "tsfel" are specified in "feature_set". Defaults to 0 for no parallelisation
Boolean specifying whether to produce warnings from feature set packages. Defaults to TRUE
Trent Henderson
featMat <- calculate_features(data = simData,
feature_set = "catch22")
Run the code above in your browser using DataLab