-
Notifications
You must be signed in to change notification settings - Fork 135
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
More user friendly reminder of data gap #586
Comments
hi @iharshulhan, thanks for raising this bug. do you have a minimal example (e.g., what is your model config) with data to reproduce this bug? If so, I can look into it. otherwise, it is hard for us to identify what is the problem. |
Yes, the problem occurs when dates between samples are not even. I've attached a sample to reproduce the error.
|
yea, that is the root cause of the error. we expect the dates to be on the same frequency. the date gaps in your data vary a lot. sometimes daily, sometimes weekly, or even several months gap. In this case, how to claim the seasonality and expect the model to capture it? |
First of all, If there is such expectation, it would be great to state it somewhere and introduce proper warnings/errors to handle the data. Right now matmul error is not very informative. Secondly, this expectation would significantly limit the usage of the tool with real world data. The date gaps is a problem of missing data points, we may fit the seasonality term on available points and interpolate in between. In the specific example the problem appears only with last 15 points, where there is a gap of several months. |
@iharshulhan Try to clarify this, KTR does come up with a nice property to skip missing values as long as user code that observation up as a null entry. So my guess is we can have a general module to detect all the gaps with some assumption of the observations frequency and fill a null values there. Then from there, KTR should be able to pick up the work. Hope that makes sense. |
Redefine the scope of this as making a more user friendly message when user accidentally input a dataset with gaps (inconsistent gaps). |
Describe the bug
Following error occures while fitting some KTR models:
ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 3 is different from 4)
Stacktrace:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: