Adrin Jalali
51c8e0e19d
CLN replace authors with the standard line ( #29250 )
2024-06-17 17:57:02 +00:00
Adrin Jalali
55ca335e42
CLN use new license notice line ( #29246 )
2024-06-13 15:51:09 +02:00
Adrin Jalali
34db65a3ad
DOC use pydata-sphinx-theme for the website ( #29038 )
...
Co-authored-by: Yao Xiao <108576690+Charlie-XIAO@users.noreply.github.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <guillaume@probabl.ai>
2024-05-20 19:36:54 +02:00
ldwy4
06865e1c40
DOC Added docstring examples for utils.sparsefuncs ( #28035 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2024-01-11 22:39:53 +00:00
Isaac Virshup
2d9fa48aaf
ENH Allow fitting PCA on sparse X with arpack solvers ( #18689 )
...
Co-authored-by: Andrey Portnoy <aportnoy@fastmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-11-07 10:42:50 +00:00
Loïc Estève
3179ce31cc
MAINT Use scipy sparse nanmin/nanmax for scipy>=1.11 ( #27492 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-10-09 09:07:26 +02:00
Guillaume Lemaitre
286f0c9d17
DOC fixes references issues given by sphinx ( #27432 )
2023-10-03 20:25:29 +02:00
Julien Jerphanion
dfd299b19e
MAINT Remove soon-to-be deprecated scipy.sparse functions ( #26751 )
2023-07-12 18:34:01 +02:00
Adrin Jalali
42173fdb34
MNT add isort to ruff's rules ( #26649 )
2023-06-21 17:50:07 +02:00
Dimitri Papadopoulos Orfanos
2fd022d972
MAINT Fix typos found by codespell ( #26448 )
2023-05-31 10:19:21 +02:00
Julien Jerphanion
41b0bd82ff
MAINT Use `scipy.sparse.isspmatrix_*` ( #26420 )
2023-05-30 13:46:32 -04:00
Adrin Jalali
893d5accaf
MNT Update black to 23.3.0 ( #26110 )
2023-04-06 12:14:16 -04:00
Ralf Gommers
d926ff130f
MAINT remove np.product and inf/nan aliases in favor of canonical names ( #25741 )
2023-03-02 10:52:07 +01:00
Clément Verrier
b7096078fa
DOC Ensures that inplace_swap_row_csr passes numpydoc validation ( #24518 )
2022-09-26 22:56:14 +02:00
Clément Verrier
affb0cb494
DOC Ensures that inplace_swap_row_csc passes numpydoc validation ( #24513 )
2022-09-26 17:43:21 +02:00
Xiao Yuan
02e36b4d86
DOC Ensures that incr_mean_variance_axis passes numpydoc validation ( #24477 )
2022-09-20 11:12:47 +02:00
b0rxington
15599753b6
DOC ensures sklearn.utils.sparsefuncs.csc_median_axis_0 passes numpydoc validation ( #24461 )
2022-09-18 21:48:05 +02:00
b0rxington
59e1819f90
DOC Ensures that sparsefuncs.count_nonzero passes numpydoc validation ( #24447 )
...
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-09-16 11:33:23 +02:00
Akshita Prasanth
57e35773f7
DOC Ensures that inplace_swap_row passes numpydoc validation ( #24178 )
2022-08-16 09:14:28 -04:00
Sandra Yojana Meneses
122f5fe865
DOC Ensures that mean_variance_axis passes numpydoc validation ( #24177 )
2022-08-13 10:42:12 -04:00
harshit5674
a2c4d8b1f4
DOC Ensures that inplace_swap_column passes numpydoc validation ( #23476 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: harshit5674 <harshit@Harshits-MacBook-Air.local>
2022-05-27 15:02:02 -04:00
Maxwell
3f1833d580
MNT Combine multiple `isinstance` call ( #23204 )
2022-04-24 07:47:51 -04:00
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