Open chkoar opened 5 years ago
seglearn has transformers Interp and InterpLongToWide - the latter which I believe may suit your needs. InterpLongToWide converts long format dataframe to wide format, and can use various interpolation schemes to deal with missing data / irregular sampling.
Let me know if that works for you.
The details this are in the API documentation - but probably the main documentation / user guide should be updated to reflect this use case.
Thanks for the reply. From the User Guide it wasn't obvious for me. I will check them out. One thing that it needs improvement are the examples in the docstrings. They are missing from some classes.
Thanks - will work on those as well.
I put the details for InterpLongToWide in the user guide. Will work on docstring examples as well.
How can I work with seglearn if I have a data representation that is presented here.
I have two cases. In the first case I have a variable that is time dependent so I would like to extract features from the previous values in order to build the X matrix.
In the second case I have the same problem but having along one or more dependent (and time dependent) variables that I want to use them in order to predict the third one.