ykang / gratis

GRATIS: GeneRAting TIme Series with diverse and controllable characteristics
https://github.com/ykang/gratis
GNU General Public License v3.0
76 stars 29 forks source link

how to modified generate_ts_with_target function to other time series feature? #14

Closed ru81git454 closed 4 years ago

ru81git454 commented 4 years ago

Hi, I found this package is interesting and helpful to my research. and i want to use same approach to other feature that not in tsfeatures package. I also found tsfeatures package support Compengine feature set from Fulcher. I want to try other feature set(catch22) https://github.com/chlubba/catch22 also from Fulcher. How should I modified function to match other features not in tsfeatures?

Thanks for helping

ykang commented 4 years ago

Hi, The tsfeatures package is flexible to use user-defined functions to calculate time series features. You can put your own feature calculation function into the second parameter ('features') of tsfeatures::tsfeatures() (refer to the help documentation). generate_ts_with_target() also has a parameter called 'features', which works similarly.

ru81git454 commented 4 years ago

Thanks,I will try!