-
Notifications
You must be signed in to change notification settings - Fork 24
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
A forecasting/predicting example would be useful #15
Comments
Hi @SebastianCallh ! It's good to hear that you are enjoying the examples. You are correct that there are no forecasting examples besides the GP regression example. Indeed, there is no unique solution to the forecasting problem within the RxInfer framework. Supplying missing values to the observations is just a way to obtain predictions. There is no recommended way to run a fitted model on new data as it heavily depends on the model, inference procedure, etc. However, we will upload more forecasting examples to illustrate the possible options and update the documentation accordingly. Thanks for pointing us to the issue. I am curious about what insight makes you think that data with type |
Thanks for the response @ismailsenoz . You are of course right in that the posterior predictions are problem dependent, particularly when it comes to plotting. In my experience it is fairly common for PPLs to offer utilities for posterior (and of course prior) predictive sampling so I guess that's where I'm coming from with my question. Without that one might have to re-implement the mechanism of the model outside of the About the performance impact of using BenchmarkTools
julia> a = vcat(missing, rand(9999));
julia> b = rand(10000);
julia> @btime sum(a)
16.372 μs (0 allocations: 0 bytes)
missing
julia> @btime sum(skipmissing(a))
8.686 μs (7 allocations: 112 bytes)
4982.93969474356
julia> @btime sum(b)
983.278 ns (1 allocation: 16 bytes)
4966.982509542625 |
Thanks for illustrating your concern and warning us about a potential performance issue. Currently, ReactiveMP (the inference engine of RxInfer) does not allow any operation in case a missing value occurs. Also, the message update rules for the factor nodes in the models need to be extended to return missing, as done in the GP regression example. Your point is valid in the case a user defines a rule that involves We will keep this as an issue regarding the utilities for posteriors and try to address it. |
Thank you for explaining, and for your work on RxInfer! |
The technicality of the issue was addressed in #51; however, the example for predictions is still missing. |
Closed by #184 |
Hi!
I read through your examples and let me say they are very nice. I specifically appreciate all the visualisations.
However, I noticed there are no examples of forecasting/predicting on new data once the model is fit. The GP regression examples does forecasting by working with data with type
Array{Union{Float64,Missing}}
but I suspect this reduces performance.What is the recommended way to run a fitted model on new data?
The text was updated successfully, but these errors were encountered: