Commit Graph

572 Commits

Author SHA1 Message Date
Thomas J. Fan 02fa8f1adb
ENH Deprecates _pairwise attribute and adds pairwise to estimator tags (#18143) 2020-10-07 21:53:36 +11:00
Maria Telenczuk 64697c665f
MRG Sample weight for StandardScaler (#18510) 2020-10-07 10:10:30 +02:00
Albert Villanova del Moral 7e545e1724
DOC Fix versionadded for 0.23 (#18522) 2020-10-05 10:23:32 +11:00
Nicolas Hug 4aada4e5fd
ENH Support unknown_value=np.nan in OrdinalEncoder (#18406) 2020-09-23 12:57:31 +02:00
Juan Carlos Alfaro Jiménez 28d84693b3
MNT Put back positional args in KBinsDiscretizer (#18437) 2020-09-22 11:37:42 -04:00
Guillaume Lemaitre 21569e719c
TST Common test preserve dtype (#18054)
Co-authored-by: Sebastian Kießling <sebkies@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-09-08 10:13:53 +02:00
Albert Villanova del Moral 647fcb1ac1
DOC Fix A to uppercase in See Also docstring section (#18332) 2020-09-04 10:35:01 -04:00
Albert Villanova del Moral 875d32fe55
DOC Fix versionadded/versionchanged for 0.24 (#18312) 2020-09-01 10:51:01 +02:00
Frans Larsson 07842079b5
DOC Fix default values, shape and dtype for preprocessing._discretization.py (#18290)
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
2020-08-31 12:59:39 +02:00
Frans Larsson 39ad4245fd
DOC fix docstring in preprocessing module following doc guideline (#18239) 2020-08-23 09:53:19 +02:00
Frans Larsson fef3664fb8
DOC Fix doc of defaults in _label.py (#18220)
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-21 20:24:42 +02:00
Nicolas Hug c3effe4bea
DOC minor typo fix (#18119) 2020-08-07 10:01:00 -04:00
Felix Wick 8a213df98f
FEA allow unknowns in OrdinalEncoder transform (#17406) 2020-08-05 18:49:25 +10:00
Yashika Sharma 3017ea8c30
ENH Added parameter clip to MinMaxScaler (#17833) 2020-07-10 22:50:30 +02:00
Juan Carlos Alfaro Jiménez 547ead6c0c
MNT More replacements of numpy aliases with built-in types (#17707)
* MNT More replacements of numpy aliases with built-in types [scipy-dev]

* MNT More (manual) replacements of numpy aliases

* MNT More (manual) replacements of numpy aliases

* FIX Minor change

* MNT Trigger build [scipy-dev]

* FIX Minor change

* MNT Trigger build [scipy-dev]

* FIX More deprecations of numpy aliases [scipy-dev]

* MNT Silent numpy aliases warnings [scipy-dev]

* FIX Fix silent deprecations

* Trigger build [scipy-dev]

* FIX Add scape characters [scipy-dev]

* FIX Remove package specification from silent

* Trigger build [scipy-dev]

* Revert
2020-06-26 12:45:03 +02:00
beatrizsmg ec1070a212
DOC improve attributes and parameters descriptions in MultiLabelBinarizer (#17718)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-06-25 18:20:40 +02:00
Thomas J. Fan 7cc0177f8e
MNT Replaces numpy alias with builtin typse (#17687)
* MNT Replaces numpy alias with builtin typse

* STY Lint error
2020-06-24 16:51:51 +02:00
Arthur Imbert 846d51771d
ENH Add dtype parameter to KBinsDiscretizer to manage the output data type (#16335)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-16 14:13:48 +02:00
Saurabh Jain 00bc681e10
DOC shorten class links in docstring using tilde (#17470)
* added tilde to bunch of files

* Updated _kde.py

Changed array_like to array-like

* Updated _kde.py

Removed space

* updated _kde.py

Added full stop

* PEP8

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-16 10:44:13 +02:00
Neil Botelho 9fa140406a
DOC add warning note regarding data leakage by using quantile_transform (#17581) 2020-06-15 11:32:28 +02:00
Cat Chenal f9966ba61c
DOC add warning note regarding data leakage by using scale and robust_scale (#17558) 2020-06-15 10:30:49 +02:00
George Kiragu ddb094a07e
DOC add warning to power transform on data leakage(#17535)
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2020-06-09 13:32:23 +02:00
CeeThinwa 728b413990
DOC added a warning to minmax_scale #dataumbrella (#17507) 2020-06-08 18:47:50 -04:00
Sam Ezebunandu baf8beddf5
DOC standardized formatting for default values in transformer class. (#17505)
* DOC_standardized formatting for default values in transformer class.

* DOC_use type bool instead of boolean

Co-authored-by: Sam Ezebunandu <samuel.ezebunandu@outlook.com>
2020-06-06 17:04:12 -04:00
Krum Arnaudov 715e240968
DOC added a warning to maxabs_scale to prevent data leakage (#17487)
* added a warning to maxabs_scale

* Update sklearn/preprocessing/_data.py

Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>

Co-authored-by: Krum Arnaudov <krum.arnaudov@amplifyanalytix.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-06-06 16:52:06 -04:00
Lucy Liu 863e58fcd5
ENH Add option to scale output to unit var in RobustScaler (#17193)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-02 14:50:27 +02:00
Alessandro Gentile ffd1873dca
DOC improve supporting types input and output in preprocessing module (#16656) 2020-05-27 15:17:15 +02:00
Lucy Liu bb4b097fa9
DOC Fix typo in quantile_transformer (#17343) 2020-05-25 14:33:11 -04:00
Thomas J Fan d40d993199
CLN Refactors _encode into two functions (#17101) 2020-05-12 14:23:00 -04:00
Thomas J Fan acbe13c07d
ENH Adds pandas IntegerArray support to check_array (#16508) 2020-04-28 19:00:12 +02:00
Gregory R. Lee 3deacb98c7
MNT consistently call import_array() after cimport of numpy (#17054) 2020-04-28 12:19:52 +02:00
brigi dbc35934a6
DOC Version added and changed labels added for v0.18 (#wimlds) (#16222)
* Versionlabels added to v0.18 (#wimlds)

* documentation issues: label changed and added for version 0.18

* fix intends and shorten description

Co-authored-by: Hannah <32333241+hhnnhh@users.noreply.github.com>
Co-authored-by: Brigitte@home <unger@nue.tu-berlin.de>
2020-04-27 18:43:47 -04:00
Nicolas Hug 76ef8b0ef0
API kwonly for utils (#17046)
* kwonly for utils

* More

* fixed some

* some more

* iwannagohomepls

* accept_sparse not kwonly anymore
2020-04-27 15:42:01 +02:00
Ekaterina Borovikova 4755ae76d2
DOC Add versionchanged and versionadded for v0.20 (#16199)
Co-Authored-By: Adrin Jalali <adrin.jalali@gmail.com>
Co-Authored-By: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-Authored-By: Nicolas Hug <contact@nicolas-hug.com>
2020-04-26 09:29:36 -04:00
Thomas J Fan e54cd3c061
API Deprecate positional arguments in preprocessing (#16996)
* API Deprecate positional arguments in preprocessing

* CLN Address comments

* CLN Uses classes as a keyword only argument

* BUG Fix
2020-04-23 19:10:49 +02:00
Nicolas Hug 11161820ba
DOC Remove duplicated docstring in MinMaxScaler (#16835) 2020-04-04 19:18:44 -04:00
Facundo Ferrín 4346c82ca4
[MRG] Improve error message for None values in OneHotEncoder and OrdinalEncoder (#16713) 2020-03-21 14:29:04 +01:00
Roman Yurchak 75d3f29e72
MAINT Remove outdated numpy and scipy backports (#16725)
* Remove unecessary numpy & scipy backports

* More fixes

* Remove unused imports
2020-03-20 13:57:18 +01:00
Olivier Grisel 6ee1597650
DOC Add note on bias induced by dropping categories in OneHotE… (#16679) 2020-03-13 10:25:09 -04:00
Olivier Grisel aa6ab89994
PEP8 in test_encoders.py 2020-03-12 11:38:37 +01:00
Alex Henrie 438bb3a438
MNT Remove unused imports (#16665) 2020-03-11 10:01:51 +11:00
Chiara Marmo f763c614f4
ENH Add check for non binary variables in OneHotEncoder. (#16585)
Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-03-10 09:58:55 +01:00
Maura Pintor b189bf6070
FIX: normalizer l_inf should take maximum of absolute values (#16633) 2020-03-10 15:24:26 +11:00
Nicolas Hug d205638475
MNT Introduction of n_features_in_ attr with _validate_data mtd (#16112) 2020-02-29 09:05:11 -05:00
Guillaume Lemaitre b8c402722b
BUG avoid nan variance with sparse input in StandardScaler (#16466) 2020-02-27 00:00:22 +11:00
Roman Feldbauer 9b39c4c4d2
TST Fix unreachable code in tests (#16110) 2020-02-16 14:41:26 +01:00
Guillaume Lemaitre db85b1264c
DOC improve the documentation of OneHotEncoder for if_binary (#16428) 2020-02-11 18:31:42 +01:00
Rushabh Vasani 7e7e115296
ENH Add 'if_binary' option to drop argument of OneHotEncoder (#16245) 2020-02-07 10:18:26 +01:00
Aleksandra Kocot 1ad8a36956 DOC Updates random_state descriptions for sklearn/preprocessing/_data.py (#16213) 2020-01-25 13:14:00 -05:00
alexshacked c4ea377198 FIX ensure object array are properly casted when dtype=object (#16076) 2020-01-14 18:06:50 -08:00