Transform time series based on a given ROCKET model. Hence, The data should be in the exact same format when invoke hanaml.ROCKET, especially the length and dimension of time series. The model used in transform comes from hanaml.ROCKET() as well.

# S3 method for ROCKET
transform(model, data, key = NULL, thread.ratio = NULL)

Arguments

data

DataFrame
Input data. For univariate time series, each row represents one time series, while for multivariate time series, a fixed number of consecutive rows forms one time series, and that number is designated by the parameter data.dim when invoke hanaml.ROCKET().

key

character, optional
Specifies the column name in data that represents the order of time-series.
Defaults to the first column of data.

thread.ratio

double, optional
Controls the proportion of available threads that can be used by this function.
The value range is from 0 to 1, where 0 indicates a single thread, and 1 indicates all available threads.
Values between 0 and 1 will use up to that percentage of available threads.Values outside this range are ignored.
Defaults to 0.

Value

DataFrame

  • The transformed result by a given "ROCKET" model.

Examples


> ro <- hanaml.ROCKET(data = df, key = 'ID')
> res <- transform(model = ro, data = df.transform, key = 'ID')
> res$Collect()