Commit Graph

163 Commits

Author SHA1 Message Date
Albert Villanova del Moral 647fcb1ac1
DOC Fix A to uppercase in See Also docstring section (#18332) 2020-09-04 10:35:01 -04:00
Anand Tiwari 2738e381ea
DOC fix erroneous statement regarding meta-estimator in all_estimators (#18231)
Co-authored-by: anandt <anandt@cvent.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-31 10:51:12 +02:00
Frans Larsson 8b6555f9c1
DOC Add None as valid option to random_state for utils module (#18253) 2020-08-25 08:44:46 +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
Hirofumi Suzuki c29092d699
MNT define a parse_version function in sklearn.utils.fixes (#17670)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-06-24 13:35:49 +02:00
Joseph Lucas cacf6bfae2
ENH Added keyword arguments to Shuffle (#17474)
Added random_state and n_samples
Modified documentation to reflect default values
Modified call to resample
2020-06-06 17:55:56 -04:00
Juan Carlos Alfaro Jiménez f42cf8a2bc
MNT Replace kwargs by named args for resample (#17324) 2020-05-26 07:48:50 +10:00
Nicolas Hug 1931e142ed
Remove deprecated utils (#17133) 2020-05-20 22:03:54 +02: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
Thomas J Fan ee2508ce45
ENH Adds HTML visualizations for estimators (#14180) 2020-04-30 08:31:58 +10: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
Roman Yurchak f621d8a392
Revert "API kwonly for utils (#17007)" (#17045) 2020-04-26 18:30:09 +02:00
Nicolas Hug 81c1e9d1f2
API kwonly for utils (#17007) 2020-04-26 18:05:16 +02:00
Roman Yurchak 1cbe59ee06
CI Check for unused imports when linting (#16678)
* Check for missing imports in linting

* Exclude externals

* Remove unused imports
2020-03-12 12:56:35 +01:00
CastaChick ca78d75e75
DOC Fixed documents that refer to Bunch object #16438 (#16447)
* Added links to utils.Bunch and fixed format of the docstring in datasets

* Added links to utils.Bunch in sklearn.compose

* Added links to utils.Bunch in sklearn.tree

* Added links to utils.Bunch in sklearn.ensemble

* Added links to utils.Bunch in sklearn.inspection

* Added links to utils.Bunch in sklearn.pipeline

* modified docstring of Bunch

* Added links to utils.Bunch to index.rst of sklearn.datasets

* Fixed some docstrings because the lines are too long

* Fixed some points as reviewed.

* Add links and delete 'for more information...'

* Fixed indent

* Fixed forgotten points.

* Fixed some points as reviewed.
2020-02-27 10:04:04 +01:00
Thomas J Fan f703b85814
ENH Improves efficiency of ColumnTransformer for string keys (#16431) 2020-02-21 21:49:11 +01:00
Adrin Jalali 2821abc76c
DOC add Bunch to public docs and API (#16404)
* add Bunch to public docs and API

* address Thomas's suggestions

* use Thomas's description
2020-02-11 15:46:27 +01:00
Pierre Delanoue 4a3b4368d3
[DOC] Update random_state descriptions for mutual_info, unsupervised, .… (4) (#16320)
* Update random_state doc for mutual_info.py, unsupervised.py, testing.py and utils/init.py

* Update comments from pr

* Update sklearn/metrics/cluster/_unsupervised.py

Co-Authored-By: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>

* Update sklearn/utils/__init__.py

Co-Authored-By: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>

* Update sklearn/utils/__init__.py

Co-Authored-By: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>

Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2020-02-07 13:00:41 +01:00
bernie gray c45721d538 ENH check for invalid batch_size in gen_batches (#16181) 2020-01-27 09:24:50 +01:00
alexshacked c4ea377198 FIX ensure object array are properly casted when dtype=object (#16076) 2020-01-14 18:06:50 -08:00
Nicolas Hug 4256542b10 MNT Removed deprecated attributes and parameters (#15803) 2019-12-09 22:17:06 +08:00
Thomas J Fan 4ce39dbc69 BUG Returns only public estimators in all_estimators (#15380) 2019-12-06 14:18:55 +01:00
Nicolas Hug ad80d3159a DEP Remove deprecated joblib tools in utils (#15792) 2019-12-06 13:59:46 +01:00
Guillaume Lemaitre 7ea7861482 ENH Add support for dataframe in PDP (#14028) 2019-10-31 12:24:39 -04:00
Nicolas Hug 19ad136223 MNT Replace DeprecationWarning with FutureWarning (#15080)
* bruteforce renaming

* WIP

* WIP

* some more

* removed weird line

* update -Werror

* testiforest

* again

* Fixed some tests

* fixed some tests

* removed -Werror

* fixed test_docstring_param issue

* fixed some tests

* some more

* renamed to SklearnDeprecationWarning

* pep8

* updated docs

* pep8

* merge

* changed to FutureWarning

* fixes

* Update doc/developers/tips.rst

Co-Authored-By: Adrin Jalali <adrin.jalali@gmail.com>

* avoid duplicates

* fixed warning for deprecations

* Still make CI break if DeprecationWarning isn't caught

* updated one warning

* fixed test

* fixed some renamings

* updated new dep warnings

* fixed bad import

* ignore warnings

* update again

* ignore futurewarning when walking packages

* Fixed test

* pep8

* Added whatsnew
2019-10-29 15:39:26 +01:00
Nicolas Hug b92455a6b2 MAINT Deprecate all of utils.testing except all_estimators (#15367) 2019-10-28 17:28:56 +01:00
Chiara Marmo 871b251623 DOC Sphinx Unexpected unindent warnings (#15130) 2019-10-04 10:56:32 -04:00
Nicolas Hug 96c988cdde
MNT Make safe_indexing private (#15104) 2019-10-02 11:47:46 -04:00
Guillaume Lemaitre ae5f55888b [MRG] ENH add support for scalar, slice and mask in safe_indexing axis=0 (#14475) 2019-09-04 19:45:19 +10:00
Guillaume Lemaitre 992ed41ecc FIX change boolean array-likes indexing in old NumPy ver… (#14510) 2019-08-02 10:46:16 -04:00
Thomas J Fan cf3e303be6 EHN Add pandas dataframe support to fetch_openml (#13902) 2019-07-12 18:05:59 +02:00
Guillaume Lemaitre 5f37ec1a99 ENH add parameter axis in safe_indexing to slice rows and columns (#14035) 2019-07-03 07:59:35 +10:00
Thomas J Fan 2e7e06b78f [MRG] Doctest with print change only adjusts default options for doctest (#13991) 2019-06-01 10:53:45 +02:00
Nicolas Hug 14bdb9d7a8 FEA Add a stratify option to utils.resample (#13549) 2019-04-24 23:16:38 +02:00
Nicolas Hug 6b7dc9bc30 FEA Partial dependence plots (#12599) 2019-04-24 22:52:15 +10:00
Thomas J Fan 8edd9f9f15 ENH Add verbose option to Pipeline, FeatureUnion, and ColumnTransformer (#11364) 2019-04-22 00:51:21 +10:00
William de Vazelhes d31b67f23d FEA Neighborhood Components Analysis (#10058) 2019-02-28 15:58:07 +01:00
Hanmin Qin 575064b8e1
MNT More clean up after we remove python < 3.5 (#13078) 2019-02-02 22:01:13 +08:00
Rüdiger Busche d300f406ae MAINT Simplify super() calls (#12812) 2019-01-10 22:27:06 +01:00
Roman Yurchak 701144559f MAINT Remove unused utils.fixes (#12928)
This continues the work done in https://github.com/scikit-learn/scikit-learn/pull/12639 on dropping the python 2 support by,
 - ~~removing unnecessary `from __future__` imports~~
 - removing unused `sklearn.utils.fixes` assuming we can agree in https://github.com/scikit-learn/scikit-learn/issues/12927 that `sklearn.utils.fixes` are private as was stated e.g. in https://github.com/scikit-learn/scikit-learn/issues/6616#issuecomment-245109979
2019-01-08 12:43:49 +11:00
Thomas Moreau d25da1be20 FIX make joblib utils private, and remove mentions of externals.joblib (#12345) 2018-11-20 10:53:52 +11:00
Ming Li 1c88b3c9c7 Fix IncrementalPCA when final batch is smaller than dimensions required for SVD (#12379) 2018-10-31 14:32:19 +01:00
Didi Bar-Zev 9ec5a15823 ALL Add resample and shuffle to __all__ (#12456) 2018-10-26 11:00:01 +02:00
Roman Yurchak b42a5152af MAINT Fix test_logistic::test_dtype_match failure on 32 bit arch (#11899) 2018-08-25 11:54:30 +08:00
Olivier Grisel 40e6c43cb4
Joblib 0.12.2 (#11741)
* joblib 0.12.2

* Export _joblib's register_parallel_backend

* Use latest version of coverage
2018-08-03 12:34:25 +02:00
Nicolas Hug 6d15840432 DOC Fixed doc issues for utils module (#11445) 2018-07-22 15:23:11 +10:00
Ronan Lamy 5592a2eda9 [MRG] PyPy support for all but a couple of estimators (#11010) 2018-07-20 14:39:53 +10:00
Guillaume Lemaitre a365714481 [MRG+2] FIX enforce deterministic behaviour in BaseBagging (#9723)
* FIX enforce deterministic behaviour in BaseBagging

* DOC add entry in whats new for model changes

* add comments

* revert space

* revert space right place

* Typo

* FIX change estimators_samples_

* TST check size training set and hash during bootstrapping

* DOC/TST API entry in doc and style correction

* DOC move entry in the right section

* DOC add missing author and issue

* DOC add details in whats new entry

* FIX add hash from joblib in utils

* iter
2018-07-19 19:18:51 +02:00
Joel Nothman 14e7c328df Restructure access to vendored/site Joblib (#11471)
In order to fix #11408, this swaps `joblib` and `_joblib`. It however, allows users to access joblib's `Memory` or `Parallel` functionality without accessing `sklearn.externals._joblib` by importing `Memory`, `Parallel`, etc. into `sklearn.utils`.
2018-07-17 18:02:11 +02:00
Roman Yurchak c09352c241 [MRG] Fix DeprecationWarning due to collections.abc in Python 3.7 (#11431)
Closes https://github.com/scikit-learn/scikit-learn/issues/11121

This PR removes the deprecation warning about ABC being moved from `collections` to `collections.abc` when importing scikit-learn in Python 3.7.

In the end, I put `collections.abc.{Sequence, Iterable, Mapping, Sized}` in the namespace of `sklearn.utils.fixes`. This was the simplest way I could find, and while it has the drawback of obfuscating the real module name, other approached appeared more problematic and a similar approach is currently used e.g. for `utils.fixes.signature` which is an alias for `inspect.signature`.

We can't just patch six with https://github.com/benjaminp/six/pull/241, because sklearn uses six from 5 years ago, which would  need updating and I'm not sure if it could have side effects (e.g. for pickling backward compatibility etc).

**Edit**: This adds a test checking that generally no warnings are raised when importing scikit-learn top-level modules.
2018-07-14 15:14:02 -05:00