-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve shape handling in generate_samples (#3456)
* Added shape_utils script * Import from shape_utils and change generate samples * Fixed lint and errors * Still errors with broadcast shapes * Fixed triangular errors * Fixed distrubutions random errors. * Fixed Multinomial error * Fixed multinomial n shape error * Added shape broadcasting tests * Added broadcast samples tests * Made all tests use fixtures. Finished shape broadcasting tests. * Fixed shape_utils docstrings. * Added random variable sampling to test_shape testsuite. * Removed redundant broadcast_distribution_samples from random methods. This is now handled in generate_samples. * Fixed lint * Moved test_shape_handling to last travis environment * Changed test skip to xfail * Fixed Bound random error * Changes to increase code coverage * Moved to_tuple to shape_utils * Used numpy vectorize to fix 3422 * Fixed signature for empty input and one_d reshaping. * Removed unused fixture and added more details to RELEASE-NOTES * Addressed colcarrol comments
- Loading branch information
1 parent
a7f62a0
commit f5d8324
Showing
13 changed files
with
793 additions
and
287 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
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.