-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a few issues of the FixedBucketsValTracker (#73)
* Fix a few issues of the FixedBucketsValTracker 1. Make the default number of bins of the internal tracker smaller so it does not cause numerical issues and/or memory problems. 2. Use floor() instead of int() (trunc) for rounding to have the same behaviour for positive and negative numbers. 3. Add an extra bin in the summarization method such that the number of bins in the summary is always "number of values"+1. This is consistent with the numpy histogram convention. * fix style --------- Co-authored-by: Luca Soldaini <[email protected]>
- Loading branch information
1 parent
5a010a2
commit 00504ff
Showing
2 changed files
with
16 additions
and
4 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