Closed konradsemsch closed 5 years ago
The error message is not very informative, but the problem is that you are not using a feature function. A feature function should return a small vector of named features. binarize_mean just converts the original time series into 0s and 1s. The package can use other feature functions as follows:
library(tsfeatures)
mylist <- list(sunspot.year, WWWusage, AirPassengers, USAccDeaths)
tsfeatures(mylist, features = c("hurst","lumpiness"))
You can see a full list of feature functions at https://pkg.robjhyndman.com/tsfeatures/articles/tsfeatures.html
We will update the package to improve the error messaging.
Improved error message in https://github.com/robjhyndman/tsfeatures/commit/ce5cead9c485fa72d9669d5c678ec82f33d4d325
I see. Thanks!
I did a couple more tests though and I found one example that seems like a bug to me:
mylist <- list(sunspot.year, WWWusage, AirPassengers, USAccDeaths) tsfeatures(mylist, features = c("hw_parameters"))
This one returns variables and not an entire vector right?
I'm just trying to run the following example with an additional feature specified and getting this result:
I noted that when using any other feature than the default 4 options, the same error shows up. What could be the reason for that?
My session info is: