-
-
Notifications
You must be signed in to change notification settings - Fork 127
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does sequence length of each TS sample have to be the same? #315
Comments
Hi there 👋, Thank you so much for your attention to PyPOTS! You can follow me on GitHub to receive the latest news of PyPOTS. If you find PyPOTS helpful to your work, please star⭐️ this repository. Your star is your recognition, which can help more people notice PyPOTS and grow PyPOTS community. It matters and is definitely a kind of contribution to the community. I have received your message and will respond ASAP. Thank you for your patience! 😃 Best, |
Hi Wulin, thanks for raising this question. The answer is yes, so far, all algorithms in PyPOTS request the input data samples to have the same length. Actually, this has been discussed in another issue #139. We are planning to make our methods able to handle samples having different lengths. You can follow me on GitHub and join our community to receive the latest news about PyPOTS. |
BTW, here is my suggestion that can help you continue modeling your dataset with PyPOTS. If your time series samples do not have strict beginnings and ends, you can apply a sliding window function to truncate a long time series sample into several shorter ones. After that, you have data samples sharing the same length and you can continue with PyPOTS. |
Hi, @WenjieDu |
No, we don't offer such an example in our current tutorials. This idea is not a big deal, and this is more related to data preprocessing than the toolbox itself. But you can utilize the sliding window func offered in PyPOTS https://docs.pypots.com/en/latest/pypots.data.html#pypots.data.utils.sliding_window If this scenario is important to you, like I mentioned above, I'd suggest you follow me and join PyPOTS community because we will release something awesome in the following months. |
Hi, @WenjieDu
|
Hi Wulin, yes, you can try to use models in PyPOTS to impute all your A1, A2, B1, B2, B3 samples, then merge them back to A and B raw data samples. Regarding the overlapped parts, you can apply the average strategy, namely average the imputed values of the overlapped parts to get the final imputation results. PyPOTS currently doesn't offer such a function to help do the merging operation. You can construct a function yourself, I believe it's not a difficult thing. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Issue description
Hi, pypots team
pypots is a great tool!
when I tried pypots example given as the 'physionet_2012' data. It is good that this example contains a lot of samples and each sample is a time series. This is similar to my own data. However, 'physionet_2012' samples has time sequence with same length. But my samples have different sequence length and some missing value, which needs imputation for next-step analysis.
Can I still move on with pypots? Any suggestion?
The text was updated successfully, but these errors were encountered: