Commit Graph

33 Commits

Author SHA1 Message Date
Jérémie du Boisberranger 1f8825c8dd
MNT Centralize common cython compiler directives (#21512) 2021-11-03 13:26:23 +01:00
Jérémie du Boisberranger 684b7d1955
FIX detect near constant feature in StandardScaler and linear models (#19788)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-04-14 13:34:22 +02:00
Jérémie du Boisberranger 57d3668f2a
MNT Avoid catastrophic cancellation in mean_variance_axis (#19766) 2021-03-31 09:20:22 +02: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
Guillaume Lemaitre b8c402722b
BUG avoid nan variance with sparse input in StandardScaler (#16466) 2020-02-27 00:00:22 +11:00
Jérémie du Boisberranger 769794249c
[MRG] new K-means implementation for improved performances (#11950) 2020-02-20 13:39:16 +01:00
Thomas J Fan 581b0e1d73 MAINT Fix GCC warnings from Cython (#14077) 2019-07-01 18:55:29 +02:00
jeremiedbb cad0fb434f MNT Use a common language_level cython directive (#13630) 2019-04-13 07:30:18 +02:00
Roman Yurchak 49570484db MAINT Use cython language_level=3 directive (#12873) 2019-02-28 18:45:15 +01:00
Andreas Mueller 952ef6637a MRG Drop legacy python / remove six dependencies (#12639) 2019-01-03 15:50:05 +02:00
Joan Massich 51b1b7cce3 Remove unnecessary copy for float64 in sparsefuncs_fast (#11966) 2018-09-02 10:17:03 +02:00
ZJ Poh adddf00433 [MRG] np.ones -> np.full (#11628) 2018-07-23 09:49:01 +02:00
Guillaume Lemaitre 5718466bb5 [MRG] ENH: Ignore NaNs in StandardScaler and scale (#11206) 2018-06-21 15:48:38 +02:00
AdityaDaflapurkar 58c043e54b DOC Fix typo in sparsfuncs.py and sparsfuncs_fast.pyx (#10865) 2018-03-25 09:52:03 +11:00
Joel Nothman ef99996180 COSMIT Avoid writing out vectorizable operations in sparsefuncs_fast (#10615) 2018-02-12 11:18:20 +01:00
Roman Yurchak d551227d97 ENH Add 64 bit indices support in csr_row_norms and inplace L2/L1 csr norm (#9663) 2017-09-05 18:35:44 +10: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
Gael Varoquaux 1837224751 Merge pull request #6613 from nelson-liu/correct_license_spelling
[MRG+1] DOC: fix spellings of 'license'
2016-06-15 13:58:59 +02:00
Joel Nothman a6a6ff6d64 Merge pull request #6785 from yenchenlin1994/make-csr_row_norms-support-fused-types
[MRG] Make csr row norms support fused types
2016-05-26 06:53:07 +10:00
Manoj Kumar 20f89ef7a3 Remove add_row_csr (#6676) 2016-05-24 14:16:49 -07:00
YenChenLin 65e91f715c Make csr_row_norms support fused types 2016-05-19 08:49:17 +08:00
Yen 28758cc5eb [MRG+2] Use fused types in sparse mean variance functions (#6593)
* Use fused types in mean variance functions

* Add test for mean-variance functions using fused trpes

* Add whats_new
2016-04-16 11:16:05 -04:00
YenChenLin 566a0e7a3e Make cython compiler directives global 2016-04-15 15:43:57 +08:00
Nelson Liu d2aaf0f4bb doc: fix spellings of 'license' 2016-03-31 17:25:31 -07:00
YenChenLin e34bbc1002 Use fused type in inplace normalize 2016-03-26 10:38:17 +08:00
YenChenLin 42d49c8c14 Make assign_rows_csr support Cython fused types 2016-03-25 00:25:36 +08:00
giorgiop 6a5a2f7960 partial_fit for scalers 2015-10-13 11:37:00 +02:00
Lars Buitinck cec3bf98f2 FIX assign_rows_csr: should not zero the entire out array
Fixes #4985.
2015-07-31 10:59:23 +02:00
Lars Buitinck c0afd46600 DOC mistake in comment
Didn't re-run Cython as this won't change line numbers etc.
2014-07-26 12:05:05 +02:00
Thomas Unterthiner f08b8c8e52 MAINT explicit float64 in sparsefuncs_fast 2014-07-13 18:46:55 +02:00
Thomas Unterthiner 325e998fcc Extend utils.sparsefuncs: inplace scale and axis min/max 2014-05-18 20:03:37 +10:00
Manoj-Kumar-S bbb8f1d1bf Moved sparsefuncs to sparsefuncs_fast 2014-03-27 13:20:45 +05:30