-
Notifications
You must be signed in to change notification settings - Fork 222
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
Unifying error messages. #747
Comments
What does everyone think about an additional keyword to We have a PR open at TuringTutorials where NUTS spits out a crazy amount of warnings due (I think) to a prior with a large variance. Here's a short example of this:
It's pretty annoying. I think we get a lot of errors that are maybe not super useful, and it'd be nice if we could do something here. We might have internal error levels reported with a macro or a function, as Martin suggested. It'd be a pretty quick one to write --- it'll be very similar to the Here's how I see using that interally: @twarn 6 "Everything is okay, just thought I should check in and see if you needed anything."
@twarn 0 "Your inference is horrible, the sampler's broken, everything is bad, and I'm quitting." I might be able to specify the level of warnings I'm willing to see, like 3 or less, using Thoughts? I agree that the warnings should be streamlined, because right now you usually get far too much information that is not particularly actionable. |
The following code snippet is used in several places, it might be helpful to define a utility function for better modularity Turing.jl/src/inference/hmc.jl Lines 111 to 115 in 336b220
|
I think this was solved in #965. Please re-open if you think more work is needed. |
At the moment the error messages are all over the place and highly inconsistent. For example the
assume
function in HMC uses three different types of error messages.Turing.jl/src/inference/hmc.jl
Line 278 in 3f72f12
Turing.jl/src/inference/hmc.jl
Line 298 in 3f72f12
Turing.jl/src/inference/hmc.jl
Line 301 in 3f72f12
I think we should have a consistent way of doing this. Maybe we can have a simple function that generates those error messages, e.g.
which would be used as follows:
I guess we could also write a macro for this but I'm not sure its worth the efforts.
The text was updated successfully, but these errors were encountered: