-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to multimodal HDI (#28)
* Fix typo * Refactor multimodal HDI code More modular functions and vectorization * Ensure interval contains >=hdi_prob * For integer/bool HDI, default to bin width of 1 * Split continuous and discrete multimodal HDI * Default to ISJ bandwidth for multimodal HDI * Return highest probability modes * Fix bugs in circular KDE * Support circular continuous multimodal HDI * Assume input probabilities sum to 1 * Merge lines * Scale KDE density to bin probabilities * Use bins returned by `_histogram` * Avoid duplication of HDI defaults * Fix and test passing bins to discrete multimodal * Simplify HDI nearest code * Fix circular standardization * Correctly compute bin centers * Fix pylint issues * Move interval splitting to own function * Use circular standardization * Add method for computing HDI from point densities * Add multimodal_nearest HDI method * rename and add check for warning in tests --------- Co-authored-by: Oriol (ProDesk) <[email protected]>
- Loading branch information
1 parent
5b110df
commit c5a4f5f
Showing
4 changed files
with
255 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.