MLBazaar / MLPrimitives

Primitives for machine learning and data science.
https://mlbazaar.github.io/MLPrimitives
MIT License
70 stars 38 forks source link

Add option to drop rolling window sequences #187

Closed csala closed 5 years ago

csala commented 5 years ago

Add a new argument to the custom.timeseries_preprocessing.rolling_window_sequences primitive to be able to selectively drop some of the generated sequences.

This should be new produce argument called drop which indicates which values in the timeseries sequence are invalid and have to be dropped. This argument would be required=False, following this specification.

The input can be of several types:

Additionally, a second argument called drop_windows should be added to disable the dropping altogether. This should be set as a fixed hyperparameter with default value False to keep the current behavior by default.