-
-
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
Feature/issue 1426 ibeta derivs large args #1433
Conversation
@Syklic Are these fine? I ran cpplint on the new/modified stuff before On Apr 30, 2015, at 12:03 AM, Stan buildbot notifications@github.com wrote:
|
@betanalpha, could you add some basic tests for:
that can go in Or, you can just give me reasonable values for each of the values just so we can instantiate these functions stand-alone and get reasonable values out. I'll add some more comments in the code itself. |
…github.com/stan-dev/stan into feature/issue-1426-ibeta_derivs_large_args Conflicts: src/stan/math/prim/scal/fun/inc_beta_derivatives.hpp
Double test added. On May 4, 2015, at 4:09 PM, Daniel Lee notifications@github.com wrote:
|
Final needs (I'll take care of it):
|
@betanalpha: the functions are missing documentation. I'll start filling stuff in, but might need your help. The incomplete beta derivatives have been renamed and moved to:
|
Gimme an example of what you want. On May 11, 2015, at 12:53 PM, Daniel Lee notifications@github.com wrote:
|
@betanalpha, I added some doc, but I feel like it's wrong. Feel like taking a look? What I really wanted to add was something that indicated where it is expected not to work. |
Refer to this link for build results (access rights to CI server needed): Build Log
Test FAILed. |
How's that? |
Refer to this link for build results (access rights to CI server needed): Build Log
Test FAILed. |
Refer to this link for build results (access rights to CI server needed): Build Log
Test FAILed. |
Refer to this link for build results (access rights to CI server needed): |
…s_large_args fixes #1426. Feature/issue 1426 ibeta derivs large args
Summary:
Dramatically improves the robustness and performance of the regularized incomplete beta function derivatives, propagating the chances to neg_binomial_cdf and neg_binomial_2_cdf. Changes still need to be propagated to beta_cdf, student_t_cdf, and others.
Intended Effect:
neg_binomial_cdf and neg_binomial_2_cdf gradients are now accurate for large arguments.
How to Verify:
./runTests.py src/test/prob/neg_binomial
./runTests.py src/test/prob/neg_binomial_2
Or build a crazy model using neg_binomial_cdf or neg_binomial_2_cdf with large arguments.
Side Effects:
None. Performance should actually improve with the added checks that switch to different expansions for different arguments.
Documentation:
None.
Reviewer Suggestions:
None.