Commit Graph

272 Commits

Author SHA1 Message Date
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
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
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
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
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
Facundo Ferrín 4346c82ca4
[MRG] Improve error message for None values in OneHotEncoder and OrdinalEncoder (#16713) 2020-03-21 14:29:04 +01:00
Olivier Grisel aa6ab89994
PEP8 in test_encoders.py 2020-03-12 11:38:37 +01: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
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
Rushabh Vasani 7e7e115296
ENH Add 'if_binary' option to drop argument of OneHotEncoder (#16245) 2020-02-07 10:18:26 +01:00
alexshacked c4ea377198 FIX ensure object array are properly casted when dtype=object (#16076) 2020-01-14 18:06:50 -08:00
Tirth Patel 0c0b6dad69 MRG FIX: order of values of self.quantiles_ in QuantileTransformer (#15751) 2019-12-21 17:30:37 +01:00
Loïc Estève 9626583e8f ENH Improve column_or_1d error message (#15926) 2019-12-20 11:14:07 -05:00
Nicolas Hug 42e17b3487 MNT Removed deprecated attributes and parameters -- ctnd (#15804) 2019-12-13 15:05:51 -05:00
Nicolas Hug 4256542b10 MNT Removed deprecated attributes and parameters (#15803) 2019-12-09 22:17:06 +08:00
Nicolas Hug b92455a6b2 MAINT Deprecate all of utils.testing except all_estimators (#15367) 2019-10-28 17:28:56 +01:00
Nicolas Hug 0f157e9475 ENH Minor update to error message from check_is_fitted (#15357) 2019-10-27 13:06:34 +01:00
Léonard Binet 846e6a38b0 ENH Support for list of lists or list of arrays multilabel indicator (continuation) (#14865) 2019-10-25 11:37:18 +11:00
Thomas J Fan 15d5ef04df MNT Make modules private in preprocessing (#15323) 2019-10-22 11:37:05 +08:00
deeplook 6d53d067d0 TST Remove test functions defined twice (#15220) 2019-10-12 17:44:11 +02:00
Kevin Winata 1018f9f98c MNT Remove preprocessing.base and its test cases (#14866) 2019-09-02 16:21:25 +08:00
Samesh Lakhotia 1c116807ce MAINT:Fix assert raises in `sklearn/preprocessing/tests/` (#14717) 2019-08-29 12:38:54 +03:00
Nicolas Hug f3eb9d2206 [MRG] MNT removing assert_equal, etc -- continued (#14232) 2019-07-02 14:53:51 +10:00
Adrin Jalali 19c068a2ec MNT towards removing assert_equal, etc (#14222) 2019-07-01 09:13:32 -04:00
Thomas J Fan be4accf79d TST refactor test_numeric_stability (#14221) 2019-06-30 10:28:29 +08:00
Thomas J Fan 0bdd92036d [MRG] MAINT Adds tag categorical to OneHotEncoder (#14068) 2019-06-24 22:42:05 +10:00
Roman Yurchak 0eedf99eee MAINT Don't use clean_warnings_registry in tests (#14085) 2019-06-17 14:10:05 +02:00
Guillaume Lemaitre 76ce7c5b63 DEP change default validate in FunctionTransformer to False(#13817) 2019-06-13 12:06:01 -04:00
Roman Yurchak ccd3331f7e MNT remove unused imports (#14021) 2019-06-04 23:15:19 +10:00
Oleksandr Pavlyk 162216af26 MAINT: test_encoder_dtypes_pandas reads expected dtype from DF (#13997) 2019-06-03 17:54:21 +10:00
Guillaume Lemaitre 9ee164baa3 [MRG] DEP remove legacy mode from OneHotEncoder (#13855) 2019-05-29 21:03:29 +10:00
James Myatt e35f040200 [MRG] Fixes get_feature_names results when using drop functionality (#13894) 2019-05-23 14:39:39 +02:00
Nicolas Hug 911792b008 ENH Avoid calling _encode_check_unknown() twice in BaseEncoder.transform (#13810) 2019-05-22 09:43:40 +10:00
Guillaume Lemaitre 6525a39dd6 MNT Remove Imputer in preprocessing (#13796) 2019-05-08 22:24:32 +08:00
Guillaume Lemaitre 28480f4cb2 DEP change the default of gamma in SVM (#13801) 2019-05-07 16:12:49 +02:00
Nicolas Hug 7500693ea2 MNT remove fit_params from BaseSearchCV.__init__ (#13519)
* remove fit_params from BaseSearchCV.__init__

* fixed randomness of test_imputation_pipeline_grid_search?

* removed KFolds
2019-03-27 22:41:15 +01:00
Mohammad Aftab c3731f524c MNT Updated error message to remove deprecated n_values (#13454) 2019-03-22 08:34:53 +11:00
Hunter McGushion b646a815b4 API Update `quantile_transform` `copy` default to True (#13459) 2019-03-20 19:48:20 +08:00
Albert Thomas 2ad8735c50 FIX set n_quantiles to min(n_samples, n_quantiles) in QuantileTransformer (#13333) 2019-03-01 11:23:56 +01:00
Roman Yurchak cf9a740598 [MRG+1] Use astype(.., copy=False) when possible (#11973)
* Use astype(.., copy=False) when possible

* Use Use astype(.., copy=False) also in tests

* Fix CI

* Guillaume's comments

* Address review comments

* Add what's new

* Fix CI

* Lint

* Fix merge issues

* More merge conflict fixes

* Fix failing test

* Lint

* Use copy=True in cluster/hierarchical

* More fixes
2019-03-01 11:07:10 +01:00
maikia b2344a4e3f ENH: process DataFrames in OneHot/OrdinalEncoder without converting to array #12147 (#13253) 2019-03-01 11:02:57 +01:00
Andreas Mueller 8d815af732
MRG don't warn on changing dtypes in scalers (#13306)
* don't warn on changing dtypes in scalers

* remove tests for dtype warnings

* len(False) > len(True)

pep8
2019-02-28 09:42:50 +01:00
Albert Thomas 0f09297cde ENH: simplify transform for uniform output in QuantileTransformer (#12827) 2019-02-26 17:53:38 +01:00
drewmjohnston 350cd4aefa ENH: Add Drop Option to OneHotEncoder. (#12908) 2019-02-26 13:50:21 +01:00
Hanmin Qin b40868d52b FIX Remove bins whose width <= 1e-8 with a warning in KBinsDiscretizer (#13165)
* remove redundant bins

* tests

* what's new

* issue number

* numeric issue

* move what's new

* Joel's comment

* forget something

* flake8

* more doc update

* Joel's comment

* redundant bins

* new message

* comment
2019-02-20 15:39:32 +01:00
SandroCasagrande 9ac5793af1 FIX Ensure sorted bin_edges from kmeans strategy of KBinsDiscretizer (#13135) 2019-02-12 09:26:49 +08:00