Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Port error to RandomState | Kevin Sheppard | 2021-02-26 | 3 | -2/+23 |
| | |||||
* | Address comments | Kevin Sheppard | 2021-02-26 | 1 | -9/+9 |
| | |||||
* | Accept suggestion | Kevin Sheppard | 2021-02-26 | 1 | -1/+2 |
| | | | | | Use if else. Co-authored-by: Eric Wieser <wieser.eric@gmail.com> | ||||
* | ENH: Improve error message in multinomial | Kevin Sheppard | 2021-02-26 | 2 | -1/+21 |
| | | | | | | | | Improve error message when the sum of pvals is larger than 1 when the input data is an ndarray closes #8317 xref #16732 | ||||
* | CLN: Move to legacy function | Kevin Sheppard | 2021-02-26 | 4 | -20/+82 |
| | | | | | | Avoid conditional compilation and move old version to legacy_vonmises Small clean up Additional comments | ||||
* | BUG: Prevent RandomState from changing | Kevin Sheppard | 2021-02-26 | 6 | -19/+45 |
| | | | | | | | | Apply vonmises fix only to Generator Add tests for correctness closes #17378 closes #17275 | ||||
* | Added test for [-np.pi, np.pi] range for the von mises distribution using ↵ | Raúl Montón Pinillos | 2021-02-26 | 3 | -0/+9 |
| | | | | large values of kappa (>1e6) | ||||
* | Fixed style and added check for bounds in [-pi,pi] interval. | Raúl Montón Pinillos | 2021-02-26 | 1 | -6/+17 |
| | |||||
* | Fixed Von Mises distribution for big values of kappa by falling back to a ↵ | Raúl Montón Pinillos | 2021-02-26 | 1 | -3/+8 |
| | | | | normal distribution (which the von mises distribution converges to). | ||||
* | Merge pull request #18433 from bashtage/randomstate-typing | Matti Picus | 2021-02-24 | 5 | -130/+824 |
|\ | | | | | ENH: Add typing for RandomState | ||||
| * | BUG: Remove incorrect variable name | Kevin Sheppard | 2021-02-24 | 1 | -1/+0 |
| | | | | | | | | Remove incorrect variable name in randint | ||||
| * | CLN: Clean up random typing | Kevin Sheppard | 2021-02-24 | 2 | -22/+7 |
| | | | | | | | | | | Clean unnecessary definitions Fix small typing errors | ||||
| * | Use {int_} for int return types | Kevin Sheppard | 2021-02-24 | 1 | -1/+1 |
| | | |||||
| * | Small fixes | Kevin Sheppard | 2021-02-24 | 3 | -7/+4 |
| | | |||||
| * | BUG: Fix typing bugs | Kevin Sheppard | 2021-02-24 | 1 | -1/+1 |
| | | |||||
| * | ENH: Add tests for RandomState | Kevin Sheppard | 2021-02-24 | 1 | -4/+6 |
| | | |||||
| * | BUG: Corect typing statements in mtrand | Kevin Sheppard | 2021-02-24 | 2 | -27/+64 |
| | | | | | | | | | | Bring over changes from Generator to RandomState where appropriate Remove attributes not in RandomState | ||||
| * | ENH/BUG: Improve definitions and fix bugs | Kevin Sheppard | 2021-02-24 | 1 | -33/+131 |
| | | | | | | | | | | | | Add tests Fix related bugs Improve specificity of definitions | ||||
| * | ENH/BUG: Add tests and correct typing issues | Kevin Sheppard | 2021-02-24 | 4 | -31/+61 |
| | | | | | | | | | | | | | | Add tests for lower level components Correct errors found in testing Improve specificity of tests Other small fixes to docs and typing | ||||
| * | MAINT: Restructure imports in pyi file | Kevin Sheppard | 2021-02-24 | 1 | -51/+53 |
| | | |||||
| * | ENH: Add typing for RandomState | Kevin Sheppard | 2021-02-24 | 3 | -61/+605 |
| | | | | | | | | | | Add typing for RandomState Small fixes to Generator's typing | ||||
* | | DOC: Explaing differences in code paths in choice | Kevin Sheppard | 2021-02-24 | 2 | -0/+10 |
| | | | | | | | | | | | | | | Add explanation for different results when using user-specified probabilities even if uniform closes #18172 | ||||
* | | DOC: Correct poisson docstring | Kevin Sheppard | 2021-02-24 | 2 | -4/+6 |
|/ | | | | closes #18314 | ||||
* | Merge pull request #18372 from lelayf/random-standard_t-doc | Charles Harris | 2021-02-23 | 2 | -30/+54 |
|\ | | | | | DOC: improve standard_t example in numpy.random. | ||||
| * | Merge branch 'master' into random-standard_t-doc | François Le Lay | 2021-02-17 | 12 | -29/+828 |
| |\ | |||||
| * | | Remove poorly cited reference | François Le Lay | 2021-02-12 | 2 | -24/+16 |
| | | | | | | | | | | | | | | | Clarify point about std computation Use absolute value for p-value computation of 2-tailed test | ||||
| * | | DOC: improve standard_t example in numpy.random. | François Le Lay | 2021-02-08 | 2 | -28/+60 |
| | | | | | | | | | | | | | | | | | | This rewrite better reflects the cited reference R example by offering a 2-tailed test and more accurate language. Closes #18370. | ||||
* | | | TST: Add test for shuffle warning and assert stacklevel | Sebastian Berg | 2021-02-19 | 1 | -0/+12 |
| | | | | | | | | | | | | | | | | | | | | | The test checks that the warning originates in the correct file (test_random.py). I am not quite sure how safe the test is, though. Unfortunately, there is no "obvious" way to test stacklevels. | ||||
* | | | BUG: fix stacklevel in warning within random.shuffle | Sebastian Berg | 2021-02-19 | 2 | -10/+12 |
| | | | | | | | | | | | | | | | Cython does _not_ add a new stacklevel (at least at this time), so `stacklevel=1` (or ommiting it) is, maybe surprisingly, correct. | ||||
* | | | MAINT: Correct code producing warnings | Kevin Sheppard | 2021-02-18 | 1 | -1/+1 |
| |/ |/| | | | | | | | Cast to avoid warnings Correct function | ||||
* | | ENH: Reorder bool and add scalar bool for integers | Kevin Sheppard | 2021-02-16 | 1 | -9/+18 |
| | | |||||
* | | ENH: Add overloads to integers | Kevin Sheppard | 2021-02-15 | 1 | -7/+121 |
| | | |||||
* | | ENH: Fix abstract integer use | Kevin Sheppard | 2021-02-15 | 1 | -2/+19 |
| | | | | | | | | Replace with concrete types | ||||
* | | ENH: Fix typing | Kevin Sheppard | 2021-02-15 | 1 | -2/+2 |
| | | | | | | | | Correct specific typing and general typing | ||||
* | | ENH: Update typing | Kevin Sheppard | 2021-02-15 | 1 | -2/+10 |
| | | | | | | | | Update with latest suggestions | ||||
* | | ENH: Add overloads | Kevin Sheppard | 2021-02-13 | 5 | -55/+192 |
| | | |||||
* | | ENH: Fix additional missed types | Kevin Sheppard | 2021-02-13 | 1 | -8/+17 |
| | | |||||
* | | ENH: More typing | Kevin Sheppard | 2021-02-13 | 1 | -82/+102 |
| | | |||||
* | | ENH: Update with TypedDict | Kevin Sheppard | 2021-02-13 | 6 | -28/+53 |
| | | | | | | | | Update using TypedDict for state | ||||
* | | ENH: Add typing for Generator | Kevin Sheppard | 2021-02-13 | 4 | -8/+253 |
| | | |||||
* | | ENH: Add typing for MT19937 and Philox | Kevin Sheppard | 2021-02-13 | 6 | -61/+92 |
| | | | | | | | | | | Add typing for remaining core bit generators Clean up remaining files | ||||
* | | ENH: Add typing for PCG64 and SFC64 | Kevin Sheppard | 2021-02-13 | 3 | -16/+107 |
| | | | | | | | | Add initial typing for select bit generators | ||||
* | | MAINT: Improve typing of BitGenerator | Kevin Sheppard | 2021-02-13 | 2 | -19/+50 |
| | | | | | | | | | | Fix initial bugs Add _Interface named tuple | ||||
* | | ENH: Initial typing of random | Kevin Sheppard | 2021-02-13 | 2 | -2/+62 |
| | | | | | | | | Add typing to the lowest-level building blocks on random | ||||
* | | MAINT: Remove unicode markers | Kevin Sheppard | 2021-02-11 | 3 | -7/+7 |
| | | | | | | | | Remove unnecessary unicode markers (u"") | ||||
* | | MAINT: Remove dummy_threading | Kevin Sheppard | 2021-02-11 | 2 | -9/+1 |
| | | | | | | | | Threading is guaranteed to be supported in Python 3.7+ | ||||
* | | BUG: Remove check in shuffle for non-ndarrays | Kevin Sheppard | 2021-02-11 | 2 | -1/+11 |
|/ | | | | | | Remove ndim for non-ndarrays and check axis is 0 closes #18142 | ||||
* | Merge pull request #18282 from numpy/treddy_issue_18273 | Charles Harris | 2021-02-03 | 3 | -4/+19 |
|\ | | | | | MAINT: gracefully shuffle memoryviews | ||||
| * | MAINT: PR 18282 revisionstreddy_issue_18273 | Tyler Reddy | 2021-02-01 | 2 | -10/+4 |
| | | | | | | | | | | | | | | * based on reviewer feedback, instead of explicitly supporting `memoryview` shuffling via `asarray()`, support the shuffling implicitly by using `Sequence` instead of `MutableSequence` | ||||
| * | MAINT: gracefully shuffle memoryviews | Tyler Reddy | 2021-02-01 | 3 | -0/+21 |
| | | | | | | | | | | | | * allow graceful shuffling of memoryviews, with same behavior as arrays, instead of producing a warning on `memoryview` shuffle |