Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | MAINT: spelling | Stephan Hoyer | 2019-06-11 | 1 | -1/+1 |
| | |||||
* | MAINT: fix histogram*d dispatchers | Stephan Hoyer | 2019-06-11 | 1 | -1/+8 |
| | | | | fixes GH-13728 | ||||
* | BUG: Increment stacklevel for warnings to account for NEP-18 overrides (#13589) | Stephan Hoyer | 2019-05-20 | 1 | -5/+6 |
| | | | | | | | | | | | | | | * Increment stacklevel for warnings to account for NEP-18 overrides For NumPy functions that make use of `__array_function__`, the appropriate the stack level for warnings should generally be increased by 1 to account for the override function defined in numpy.core.overrides. Fixes GH-13329 * Update numpy/lib/type_check.py Co-Authored-By: Sebastian Berg <sebastian@sipsolutions.net> | ||||
* | DOC: have notes in histogram_bin_edges match parameter style | Ryan Levy | 2019-05-05 | 1 | -7/+7 |
| | | | | bins only accepts lowercase strings, but the notes are capitalized. | ||||
* | DOC: fixes from review | mattip | 2019-01-22 | 1 | -0/+1 |
| | |||||
* | DOC: remove python2-only methods, small cleanups | mattip | 2019-01-21 | 1 | -1/+2 |
| | |||||
* | TST, DOC: enable refguide_check | Tyler Reddy | 2018-12-14 | 1 | -4/+5 |
| | | | | | | | | * ported the refguide_check module from SciPy for usage in NumPy docstring execution/ verification; added the refguide_check run to Azure Mac OS CI * adjusted NumPy docstrings such that refguide_check passes | ||||
* | resolve issues from review | guoci | 2018-11-20 | 1 | -2/+5 |
| | |||||
* | DOC: mention LOOCV in description of "stone" rule. | Stephan Hoyer | 2018-11-20 | 1 | -2/+2 |
| | |||||
* | ENH: Add 'ise' estimator to np.histogram | guoci | 2018-11-20 | 1 | -11/+62 |
| | |||||
* | ENH: set correct __module__ for objects in numpy's public API | Stephan Hoyer | 2018-11-13 | 1 | -1/+5 |
| | | | | | | | | | | | | | Fixes GH-12271 Tests verify that everything in ``dir(numpy)`` either has ``__module__`` set to ``'numpy'``, or appears in an explicit whitelist of undocumented functions and exported bulitins. These should eventually be documented or removed. I also identified a handful of functions for which I had accidentally not setup dispatch for with ``__array_function__`` before, because they were listed under "ndarray methods" in ``_add_newdocs.py``. I guess that should be a lesson in trusting code comments :). | ||||
* | Merge pull request #12116 from shoyer/array-function-numpy-lib | Charles Harris | 2018-10-11 | 1 | -0/+18 |
|\ | | | | | ENH: __array_function__ support for np.lib, part 1/2 | ||||
| * | ENH: __array_function__ for np.lib, part 1 | Stephan Hoyer | 2018-10-08 | 1 | -0/+18 |
| | | | | | | | | np.lib.arraypad through np.lib.nanfunctions | ||||
* | | BUG: Allow boolean subtract in histogram | Matthew Bowden | 2018-10-10 | 1 | -0/+8 |
|/ | | | | | | | | | | | Convert bool to uint at start, rather than attempt a XOR Only check type against np.bool_ Refactor warnings check | ||||
* | Merge pull request #11778 from eric-wieser/histogram-overflow | Charles Harris | 2018-08-18 | 1 | -3/+29 |
|\ | | | | | BUG: Avoid signed overflow in histogram | ||||
| * | BUG: Avoid signed overflow in histogram | Eric Wieser | 2018-08-18 | 1 | -3/+29 |
| | | | | | | | | | | | | | | | | | | When dividing the range between first and last, the formula `(x - first) / (last - first)` is used, where `last >= first` This falls apart if the types of these variables are signed integers, in which case overflow can occur. The solution is to force the subtraction result to be unsigned. This is a regression in 1.15.0 | ||||
* | | Merge pull request #11531 from eric-wieser/histogramdd-density-no-deprecation | Charles Harris | 2018-07-08 | 1 | -5/+21 |
|\ \ | | | | | | | ENH: Add density argument to histogramdd. | ||||
| * | | MAINT: Rename histogramdd's normed argument to density, to match histogram | Eric Wieser | 2018-07-08 | 1 | -5/+21 |
| |/ | | | | | | | Fixes gh-4371 | ||||
* | | Merge pull request #11428 from eric-wieser/deprecate-normed-1.15.0 | Charles Harris | 2018-06-27 | 1 | -1/+1 |
|\ \ | | | | | | | BUG: Fix incorrect deprecation logic for histogram(normed=...) (master) | ||||
| * | | BUG: Fix incorrect deprecation logic for histogram(normed=...) | Eric Wieser | 2018-06-26 | 1 | -1/+1 |
| | | | | | | | | | | | | Fixes #11426, which was introduced in #11323 and #11352 | ||||
* | | | Merge pull request #11371 from eric-wieser/clarify_bin_order | Charles Harris | 2018-06-18 | 1 | -3/+4 |
|\ \ \ | |/ / |/| | | DOC: Clarify requirement that histogram bins are monotonic. | ||||
| * | | DOC: Clarify requirement that histogram bins are monotonic. | Eric Wieser | 2018-06-17 | 1 | -3/+4 |
| |/ | | | | | | | Close gh-631 | ||||
* | | DEP: Actually deprecate the normed argument to histogram | Eric Wieser | 2018-06-15 | 1 | -10/+32 |
|/ | | | | Documenting this argument at such length gives it authenticity it does not deserve. | ||||
* | BUG: histogramdd fails on large integers | Eric Wieser | 2018-04-30 | 1 | -1/+2 |
| | | | | This is due to gh-11022. | ||||
* | ENH: Disable fuzzing on histogram boundaries | Eric Wieser | 2018-04-30 | 1 | -21/+8 |
| | | | | | | | | | | Previously a fuzzy rounded comparison was used for the rightmost bin of histogramdd. It's not clear why this was done, and it resulted in surprising behavior. This also removes the restriction that bin edges must be floats, and allows integer arrays to be passed (and returned) Fixes gh-10864 | ||||
* | MAINT: Remove unnecessary special case for N == 0 | Eric Wieser | 2018-04-10 | 1 | -4/+0 |
| | |||||
* | ENH: Improve histogram bins="auto" for data with little variance (#10739) | Varun Nayyar | 2018-04-09 | 1 | -9/+22 |
| | | | Now falls back on sturges estimator when the IQR is zero | ||||
* | MAINT: Don't use np.arange just because `range` is shadowed | Eric Wieser | 2018-04-08 | 1 | -7/+11 |
| | | | | Creates an alias instead | ||||
* | MAINT: Use the minlength argument of bincount to avoid a copy into a larger ↵ | Eric Wieser | 2018-04-08 | 1 | -8/+4 |
| | | | | | | array The result is left as a float, even though it no longer needs to be, as this commit aims not to change behavior. | ||||
* | MAINT: Don't reimplement `ravel_multi_index` | Eric Wieser | 2018-04-08 | 1 | -3/+2 |
| | |||||
* | MAINT: Don't use a dict with numeric keys when a tuple would do fine | Eric Wieser | 2018-04-08 | 1 | -3/+4 |
| | |||||
* | MAINT: Remove asarray call on a known array | Eric Wieser | 2018-04-08 | 1 | -2/+0 |
| | |||||
* | MAINT: Remove dead code. | Eric Wieser | 2018-04-08 | 1 | -3/+0 |
| | | | | len(xy) == N, and we already checked if N == 0 above. | ||||
* | MAINT: Remove pointless axis permutation | Eric Wieser | 2018-04-08 | 1 | -9/+3 |
| | |||||
* | MAINT: Remove redundant operations in 1d masking | Eric Wieser | 2018-04-08 | 1 | -1/+1 |
| | | | | `x1d[nonzero(mask1d)[0]]` is just a less readable way to spell `x1d[mask1d]` | ||||
* | BUG: Use intp for indices | Eric Wieser | 2018-04-06 | 1 | -1/+1 |
| | | | | Fixes gh-8531 | ||||
* | DOC: Document the surprising behaviour of np.histogramdd on array_likes | Eric Wieser | 2018-04-06 | 1 | -4/+12 |
| | |||||
* | MAINT/ENH: Reuse range computation code from np.histogram in np.histogramdd | Eric Wieser | 2018-04-06 | 1 | -29/+15 |
| | | | | This also adds support for inferring the range along a subset of the axes, rather than an all or nothing approach. | ||||
* | MAINT: Give a more useful error messages for bins of an incorrect dimension | Eric Wieser | 2018-03-26 | 1 | -2/+5 |
| | | | | | | Previously gave `ValueError: object too deep for desired array` from an internal call This also adds support for 0d array bincounts | ||||
* | MAINT: Only check bin monotonicity if not using linspace | Eric Wieser | 2018-03-26 | 1 | -5/+6 |
| | | | | | This also switches to doing comparisons rather than subtractions, for consistency with np.histogram. That change is not strictly necessary here as the arguments are not unsigned integer types (unlike in np.histogram), but it would nice to support integer bins in future. | ||||
* | MAINT: Unify computation of `nbin[i]` | Eric Wieser | 2018-03-26 | 1 | -3/+2 |
| | |||||
* | MAINT: Make np.histogramdd error messages consistent with np.histogram | Eric Wieser | 2018-03-26 | 1 | -4/+4 |
| | |||||
* | MAINT: The histogram_bin_edges function needs a raw docstring. | Charles Harris | 2018-03-16 | 1 | -1/+1 |
| | |||||
* | DOC: Move bin estimator documentation from `histogram` to `histogram_bin_edges` | Eric Wieser | 2018-03-16 | 1 | -107/+75 |
| | |||||
* | ENH: Add np.histogram_bin_edges (#10591) | Kirit Thadaka | 2018-03-15 | 1 | -2/+126 |
| | | | | | Fixes #10183 Documentation is copied from np.histogram | ||||
* | Merge pull request #10618 from eric-wieser/avoid-nontuple-indices | Marten van Kerkwijk | 2018-03-15 | 1 | -1/+1 |
|\ | | | | | MAINT: Stop using non-tuple indices internally | ||||
| * | MAINT: Stop using non-tuple indices internally | Eric Wieser | 2018-02-16 | 1 | -1/+1 |
| | | | | | | | | | | | | By not using this type of indexing, it becomes easier for subclasses to override indexing in a way that works correctly with numpy functions. These locations were found by deprecating the behavior in question, which is deliberately not part of this commit | ||||
* | | MAINT: Improve range error messages in np.histogram (#10603) | Kirit Thadaka | 2018-02-20 | 1 | -7/+9 |
|/ | |||||
* | BUG: Fix crashes when using float32 values in uniform histograms | Eric Wieser | 2018-02-02 | 1 | -7/+18 |
| | | | | | | | | Fixes #8123, closes #9189, fixes #10319 This is a workaround to #10322, not a fix for it. Adds tests for cases where bounds are more precise than the data, which led to inconsistencies in the optimized path. | ||||
* | MAINT: Extract helper function for last-bound-inclusive search_sorted | Eric Wieser | 2017-12-27 | 1 | -6/+16 |
| | | | | Also avoids `r_`, and construction of arrays from lists |