-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
MAP estimate doesn't take priors into account? #153
Comments
That should be correct. Is it the exact same value? Moving to DiffEqParamEstim.jl |
yes, it is exactly the same value. I was wondering how could it converge to a value that belongs to the domain where the prior is zero. Also, since I know the priors for all the parameters and i have the data to fit them against, would it be possible to get from Optim not only a calibrated value, but an entire posterior distribution, or at least confidence intervals, like ABC would do? |
@Vaibhavdixit02 could you take a look? |
@claudio20497 it should work now, after #155.
What you can do here is use Optim to get the optimum parameters and then run NUTS using that as the initial value to get the posterior |
Hello @Vaibhavdixit02 , Thanks for your reply. Reading the DiffEqBayes documentation, I see that NUTS ( which is implemented by Turing.jl , and thus would require to use On the other hand, So the best option is to wait for the above issue to be solved, right? |
Hello,
I anticipate that this question is probably due to me being very new to the field.
My goal is to perform model parameter estimation, where the optimizer should also output parameter confidence intervals.
I tried using bayesian inference ( ABC) and it works, the problem is that my model has too many parameters for ABC to find a good convergence.
I noticed that, if one doesn't need confidence intervals, then optim ( BFGS) is able to properly fit all the parameters ( about 65 in our case).
So I read that it is possible to define a cost function with priors here, so I tried to replicate the tutorial about finding optimal parameter values for an ODE, but I also tried to set the
priors
parameter. So the tutorial code is ( I put it here for ease of reference):And it converges to 1.4999981995513092.
If insert a prior ( here explicitly chosen not to include the calibrated value):
It converges to the same value.
Maybe this is not the correct way to do it. How should one use such
cost_function
with priors?Thank you very much
The text was updated successfully, but these errors were encountered: