Prediction setting specific Datetimes #428
Replies: 7 comments
-
Hi, @glopezzz You should also set If that does not solve your issue, please provide a minimal set of code to replicate the issue. |
Beta Was this translation helpful? Give feedback.
-
Hi @ourownstory , thanks for answering. The thing here is that I'm not seeking a future dataframe. I want to correct past empty data. That's why I need to give the I've tried using the I also tried specifying
Can you pass the link for the Thanks again, |
Beta Was this translation helpful? Give feedback.
-
Hi @glopezzz Do you mind sharing a piece of code for me to reproduce what you are doing? Also, did you try this?
|
Beta Was this translation helpful? Give feedback.
-
@mchessl had a similar issue, and ultimately had success with it in: maybe they can share what they did in #262 |
Beta Was this translation helpful? Give feedback.
-
Hi @ourownstory, That did solve my issue! I'll leave the functions I use here bellow:
That function returns a list of models, as I need a model per variable... With this next function, I predict the data for each variable. As the dates to predict are the same for each variable I need, the DataFrame created by
I hope this helps... Thank you!! |
Beta Was this translation helpful? Give feedback.
-
Great @glopezzz, thank you for sharing your code! Btw, you could also add your other variables as "future regressors" to each of the models if you would like to improve the filled in data. If you like, you could create a short notebook "Filling in missing data" explaining what you did here for others. |
Beta Was this translation helpful? Give feedback.
-
Alright, I'll happily do that, although I cannot share the data due confidentiality... I would change the variables names. How do I create a notebook and link it to neuralprophet?? I've never done this... |
Beta Was this translation helpful? Give feedback.
-
Hi,
My issue is that my data has records for every 30 minutes. The training data is not necessarily ordered by datetime... there could be dates to predict between the training datetimes. Therefore when I fit the modle I want to give the model.predict() function, a dataframe with all those test_dates (as I did with the fbprophet models).
To hand in the DF for prediction, it requires a 't' and a 'y':
Then, when I use the model.predict() function, it returns the following error:
TypeError: can't convert np.ndarray of type numpy.object_. The only supported types are: float64, float32, float16, int64, int32, int16, int8, uint8, and bool.
Don't understand why. Am I doing anything wrong here?
I will also like to add that I set the examples freq='D' as I didn´t find any Documentation about that parameter... What other options are there?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions