You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix random_choice to handle multidim p and sizes that are not None (#3380)
* Fixed dist_math.random_choice to handle multidimensional p and also non None sizes correctly.
* Fixed mixture distribution conflict.
* Moved to_tuple from distribution.py to dist_math.py
Copy file name to clipboardExpand all lines: RELEASE-NOTES.md
+1
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@
22
22
- Added tests for mixtures of multidimensional distributions to the test suite.
23
23
- Fixed incorrect usage of `broadcast_distribution_samples` in `DiscreteWeibull`.
24
24
-`Mixture`'s default dtype is now determined by `theano.config.floatX`.
25
+
-`dist_math.random_choice` now handles nd-arrays of category probabilities, and also handles sizes that are not `None`. Also removed unused `k` kwarg from `dist_math.random_choice`.
0 commit comments