-
Notifications
You must be signed in to change notification settings - Fork 432
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
rand_distr: Fix dirichlet sample method for small alpha. #1209
Merged
Commits on Jan 2, 2022
-
rand_distr: Fix dirichlet sample method for small alpha.
Generating Dirichlet samples using the method based on samples from the gamma distribution can result in samples being nan if all the values in alpha are sufficiently small. The fix is to instead use the method based on the marginal distributions being the beta distribution (i.e. the "stick breaking" method) when all values in alpha are small.
Configuration menu - View commit details
-
Copy full SHA for 745ace8 - Browse repository at this point
Copy the full SHA 745ace8View commit details
Commits on Feb 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c44ac16 - Browse repository at this point
Copy the full SHA c44ac16View commit details -
* Create a struct for each random variate generation method: DirichletFromGamma and DirichletFromBeta. * Move the initialization of the data required by the generators into the new() method. * Make the main Dirichlet object an enum.
Configuration menu - View commit details
-
Copy full SHA for 4ecb35e - Browse repository at this point
Copy the full SHA 4ecb35eView commit details
Commits on Mar 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7513e83 - Browse repository at this point
Copy the full SHA 7513e83View commit details -
Configuration menu - View commit details
-
Copy full SHA for 030d2ad - Browse repository at this point
Copy the full SHA 030d2adView commit details
Commits on Mar 25, 2023
-
Merge master and fix conflicts.
The main change is that Dirichlet now has a const trait N for the dimension. The other significant change is to propagate errors that could occur when Beta:new or Gamma::new is called.
Configuration menu - View commit details
-
Copy full SHA for 7c97f9b - Browse repository at this point
Copy the full SHA 7c97f9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fcb25f - Browse repository at this point
Copy the full SHA 7fcb25fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2225652 - Browse repository at this point
Copy the full SHA 2225652View commit details
Commits on Mar 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c12db0b - Browse repository at this point
Copy the full SHA c12db0bView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.