-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Eliminate error message when sampling #640
Comments
I found out where the "Error in function:" comes from. It's in boost/math/policies/error_handling.hpp, inside the raise_error function. We already reimplemented most of the exception handling, so perhaps we should bypass Boost's error handling altogether. |
Yeah, I think Bob summarized it best: what happens is that the log_prob function throws an error, On May 7, 2014, at 10:54 PM, Daniel Lee notifications@github.com wrote:
|
If that's what's causing the confusion, we could reimplement that portion I'm not a fan of a warning message saying that there's an error. No wonder On Wed, May 7, 2014 at 6:07 PM, Michael Betancourt <notifications@github.com
|
If we catch all the errors, then it should be OK to turn A very crude fix would be to have the informational message
On May 8, 2014, at 12:15 AM, Daniel Lee notifications@github.com wrote:
|
We’re catching it but repeating the original error verbatim. On May 7, 2014, at 11:28 PM, Bob Carpenter notifications@github.com wrote:
|
How can we do that? The error gets thrown in the context
On May 8, 2014, at 12:33 AM, Michael Betancourt notifications@github.com wrote:
|
The offending code is
paired with void _write_error_msg(std::ostream* error_msgs,
You’ll see that _write_error_msg prints e.what(), and it’s the original exception On May 7, 2014, at 11:36 PM, Bob Carpenter notifications@github.com wrote:
|
Going back to @betanalpha's comment, that e.what() is currently created by Boost's error handling. We can easily replace that. Here's what the Boost function looks like:
Inside our Here is what an example message looks like:
If we were to change the wording, what would be a reasonable change?
I'm leaning towards 3 right now. Anyone want to weigh in? If we did that, could we leave the reporting as-is? |
Personally I have no problem with error (it is an error in the underlying function) On May 8, 2014, at 3:01 PM, Daniel Lee notifications@github.com wrote:
|
I'd really like it if someone else took the fall this time. Any wording that even hints of "error", including "exception", "warning", If you say "if it only happens a few times", we'll be bombarded with The reference to Metropolis isn't sinking in because I many of The manual needs to be changed as part of this. We should "error" can be included for initialization errors, etc.
P.S. Since you're wading into R, it'd be nice to have the messages On May 8, 2014, at 4:01 PM, Daniel Lee notifications@github.com wrote:
|
Just to recap, I think there are two different things to do regarding implementation:
I'll update this comment with the appropriate issue numbers once I create them. |
I actually don't think we should reduce the frequency of the messages. |
I really think we should include:
|
I think that'd be great. I see two ways of doing it,
Seems like (2) would be faster in terms of the execution Anybody see any other way to do this? On Jul 9, 2014, at 5:16 PM, Marcus Brubaker notifications@github.com wrote:
|
I seem to recall us having a discussion about this on stan-dev several
or something like that. The issue with this has always been getting the model line number from the On Wed, Jul 9, 2014 at 11:19 PM, Bob Carpenter notifications@github.com
|
Exactly --- that was proposal 2. I think I can get the line numbers with the new iterators. This is definitely worth doing, but it's not going to happen
On Jul 9, 2014, at 11:37 PM, Marcus Brubaker notifications@github.com wrote:
|
Users have difficulty understanding the rejection messages while sampling.
Perhaps some of the issue is due to the "error" within the message itself. Perhaps we should reword that bit.
We should also eliminate the error message.
The text was updated successfully, but these errors were encountered: