-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To simplify the `histogram` implementation a bit, rewrite it using `labeled_comprehension`. Make use of `functools.partial` to bind arguments to `histogram` so that it can be used with `labeled_comprehension`. Also simplify the internal `_histogram` function into a basic kernel function following these changes. Set the return type of `labeled_comprehension` as `object` to match that of what `histogram` used prior.
- Loading branch information
Showing
2 changed files
with
4 additions
and
15 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