Commit Graph

37 Commits

Author SHA1 Message Date
cdrig ac4cc3c64e
DOC make min_max_axis pass numpydoc (#22839)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-22 02:07:51 +01:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Tom Dupré la Tour f6e6ad2d9e
MNT clean futurewarning for 1.0 | _deprecate_positional_args (#20002)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-05-14 11:30:27 -04:00
Frans Larsson 8e9ced237b
DOC Fix doc of defaults in sklearn.utils.sparsefuncs.py (#18025)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-12-15 10:37:12 +01:00
Alexandre Gramfort 5263eea04d
ENH add support for sample_weights in StandardScaler when X is sparse (#18682) 2020-10-28 09:34:17 +01:00
Maria Telenczuk f1111be2fa
incremental mean and var for weighted sparse X (#18569)
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-10-23 22:16:27 +02:00
Alexandre Gramfort 20b27858b9
FIX raise proper error in incr_mean_variance_axis with axis=1 and mismatch shape input arrays (#18655) 2020-10-21 14:11:39 +02:00
N. Haiat 1aded54711
DOC Fix docs for default values in sklearn.utils.sparsefuncs (#18400) 2020-09-17 13:08:24 -04:00
Thomas J Fan e770715c43
MNT Completes position arg deprecation (#17272)
* ENH Adds public functions with position args warning

* BUG Circlar import

* STY

* BUG Add keywords

* BUG Fixes warnings

* ENH Adds other public functions

* CLN Suggestion

* CLN Suggestion

* REV Revert pairwise

* ENH Positoinal args for compute_class_weight
2020-05-19 09:07:25 +02:00
Adrin Jalali 0eebade264 DOC docstring (shape= -> of shape) (#14640) 2019-10-02 20:54:32 -04:00
rlms dc5e4d8896 FIX downcast large matrix indices where possible in sparsefuncs._minor_reduce (fix #13737) (#13741) 2019-05-23 22:55:09 +10:00
Joel Nothman 98357ec4d4 FIX (0.21) make count_nonzero dtype invariant wrt axis (#12341) 2018-10-14 21:12:02 +08:00
Guillaume Lemaitre 5718466bb5 [MRG] ENH: Ignore NaNs in StandardScaler and scale (#11206) 2018-06-21 15:48:38 +02:00
Guillaume Lemaitre b9f3758dfd MAINT add function to ignore nan in min/max sparse functions (#11196) 2018-06-07 06:57:30 +10:00
AdityaDaflapurkar 58c043e54b DOC Fix typo in sparsfuncs.py and sparsfuncs_fast.pyx (#10865) 2018-03-25 09:52:03 +11:00
Jean Helie ac41281451 [MRG+1] Fix alerts found with lgtm (#9278)
* compare values rather than references

* add __ne__ to class

* add missing self parameter

* properly initialise child class using super()

* remove useless loop variables and assigments

* remove useless return statements

* respect PEP8 style

* fix another flake8 check
2017-07-05 17:22:21 +10:00
Naoya Kanai 6579220588 [MRG+1] Drop NumPy < 1.8 (#8874) 2017-06-07 17:06:06 +02:00
Joel Nothman 8570622a44 [MRG+1] DOC insert spaces before colons in parameter lists (#7920)
* DOC insert spaces before colons in parameter lists

Complies with numpydoc to improve rendering and automatic quality
assurance such as #7793. Affects listings of Parameters Attributes,
Returns.

Performed with the help of:

    grep -nE '^(    )+[a-zA-Z][a-zA-Z0-9_]*: ' sklearn -R | grep -v -e
    externals -e tests | grep -v -e default: -e else: -e Warning: -e Note:
    -e TRAIN: -e Default: -e True: -e False: -e DOI: -e In: | gsed
    's|\([^:]*\):\([0-9]*\):\([^:]*\):\(.*\)|--- a/\1\n+++ b/\1\n@@ -\2,1
    +\2,1 @@\n-\3:\4\n+\3 :\4|' | git apply --unidiff-zero -

* DOC fix numpydoc format for param
2016-11-25 10:59:22 +01:00
giorgiop 6a5a2f7960 partial_fit for scalers 2015-10-13 11:37:00 +02:00
Loïc Estève 67dcd99d82 TST fix tests with numpy 1.6.1
np.bincount raises an Exception with empty input arrays for numpy versions < 1.6.2
Add utils.fixes.bincount to tackle this issue and use it instead of np.bincount
2015-02-01 15:49:49 +01:00
Raghav R V b3fbccca38 FIX various mismatch between docstring and signature params
DOC max_iterations -> max_iter. Make it consistent with kmeans

MAINT Replace the deprecated dx parameter with d in the docstrings

MAINT Deprecation warning for max_iterations parameter.
2015-01-16 11:54:57 -05:00
MechCoder 2daa0289ef Renamed csc_row_median to csc_median_axis_0 2014-10-21 09:21:30 +02:00
MechCoder 3e7b816a0d DOC: Explain why the centroid of the manhattan metric is the median 2014-10-21 09:21:30 +02:00
MechCoder 9622e858b3 MAINT: Move _get_median into sparsefuncs to avoid circular imports 2014-10-21 09:21:30 +02:00
MechCoder 91450c6960 FIX: Wrap csc_row_median around the _get_median imputer function 2014-10-21 09:21:30 +02:00
MechCoder 6f41bd1c88 ENH: Patches Nearest Centroid for metric=manhattan for sparse and dense data 2014-10-21 09:21:30 +02:00
Thomas Unterthiner 52adb5cae7 ENH Add 'axis' argument to sparsefuncs.mean_variance_axis 2014-09-03 13:47:48 +02:00
Joel Nothman 0e31553de5 ENH Sparse multilabel target support
All multilabel metric calculation is now performed efficiently over
sparse CSR matrices.
2014-07-30 22:13:11 +10:00
Thomas Unterthiner 325e998fcc Extend utils.sparsefuncs: inplace scale and axis min/max 2014-05-18 20:03:37 +10:00
Manoj-Kumar-S 5d47cfcbcb Improved formatting of unsupported sparse matrices in swapping 2014-05-10 11:37:53 +05:30
Manoj-Kumar-S fc634f95f2 Made the following changes
1. Minor changes to docs
2. Replaced swap with inplace_swap
2014-04-30 23:27:26 +05:30
Manoj-Kumar-S 31d438eb3d COSMIT: Replaced ptr1/2 with start/stop 2014-04-26 23:38:58 +05:30
Manoj-Kumar-S 924db9b07e Made the following changes
a] Replaced numpy slicing with concatanate
b] Added swap_sparse_column
2014-04-24 20:58:11 +05:30
Manoj-Kumar-S 5119d68982 ENH: Swap rows in sparsefuncs 2014-04-24 17:19:09 +05:30
Lars Buitinck 32c843b4b9 COSMIT: pep8, trailing spaces 2014-03-29 17:59:35 +01:00
Manoj-Kumar-S bbb8f1d1bf Moved sparsefuncs to sparsefuncs_fast 2014-03-27 13:20:45 +05:30