Commit Graph

238 Commits

Author SHA1 Message Date
Thomas J. Fan cffd98dfb4
TST Makes sure name is correct (#18503) 2020-10-02 11:39:42 +02:00
Thomas J. Fan 328409f8c9
MNT Use fetch_kddcup99_fxt to follow SKLEARN_SKIP_NETWORK_TESTS (#18487) 2020-09-29 17:00:15 -04:00
Guillaume Lemaitre 8bab999e2e
ENH add parameter as_frame in fetch_kddcup99 (#18280)
Co-authored-by: aliang <aliang@air>
2020-08-31 13:45:48 -04:00
Jiaxiang bdf2ff5763
API Change default value of as_frame in fetch_openml to 'auto' (#17610) 2020-08-15 21:06:41 +10:00
Christian Kastner 5af6561441
TST Change expected result type np.int64 -> np.int (#18089)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-07 08:46:53 +02:00
Thomas J. Fan cb8f1805a8
TST Default skip network tests (#18002) 2020-07-27 11:19:42 +02:00
Guillaume Lemaitre 36c3c2bf8d
FIX remove pytest warning in dataset/tests/test_common.py (#17828)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-07-12 16:16:25 -04:00
Juan Carlos Alfaro Jiménez df99dfaeed
TST Skip test_common_check_return_X_y if pillow not installed (#17692) 2020-06-26 20:41:37 +02:00
Shashank Singh 1e08459c74
ENH Verify md5-checksums received from openml arff file metadata(#14800)
Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-06-25 20:35:52 -04:00
xavier dupré b0c03d1280
BUG fix SparseCoder to follow scikit-learn API and allow cloning (#17679)
* BUG fix SparseCoder to follow scikit-learn API

* TST check that get_params and set_params work as expected

* address comments

* PEP8

* iter

* Fixes #8675, fix cloning for SparseCoder

* remove spaces

* Update _dict_learning.py

* fix confusing arguments

* remove unnecessary code

* Update test_common.py

* removes spaces

* PEP8

* iter

* fix merge

* ignore a mypy warning

* type: ignore

* remove one deprecated verification

* Update sklearn/decomposition/_dict_learning.py

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>

* Update sklearn/decomposition/_dict_learning.py

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>

* Update sklearn/decomposition/tests/test_dict_learning.py

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>

* test clone produces different id

* review

* add one more test

* lint

* Update sklearn/decomposition/tests/test_dict_learning.py

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-06-25 23:05:19 +02:00
Roman Yurchak 361c052f6d
MNT Add type annotations for OpenML fetcher (#17053)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-06-25 18:30:27 +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
Thomas J. Fan 39760e513f
TST Skip test_covtype if pandas not installed [scipy-dev] (#17682) 2020-06-23 19:20:52 -04:00
Alex Liang 6ef4487c66
EHN Add parameter as_frame to fetch_covtype (#17491)
Co-authored-by: aliang <aliang@air>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-06-21 01:02:26 -04:00
Guillaume Lemaitre 129588c2db
MNT refactor tests for datasets (#17599)
* MNT refactor tests for datasets

* PEP8

* remove partial
2020-06-16 13:54:23 +02:00
Juan Carlos Alfaro Jiménez bf6023fc77
FIX Fixes deprecation of positional arguments on test_percent10 (#17577)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-15 12:50:18 +02:00
Jiaxiang 77a34290d2
Add as_frame='auto' option in datasets.fetch_openml (#17396) 2020-06-10 09:34:46 +02:00
Adrin Jalali 1ba06518c5
API make load_* args in datasets kwarg only (#16719)
* API male load_* args in datasets kwarg only

* more loaders

* pep8

* fix test_omp usage

* fix some usages

* Update sklearn/datasets/_samples_generator.py

Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com>

Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
2020-04-27 14:41:35 -04:00
Joel Nothman a14953aca9
ENH buffer openml stream rather than reading all at once (#16084) 2020-04-26 18:52:47 +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
Roman Yurchak c3969f43d9
TST Enable california_housing pandas test in cron job (#16547) 2020-03-04 22:33:59 +01:00
Roman Feldbauer cd622dfb42
MNT Download and test datasets in cron job (#16348) 2020-03-02 00:41:19 -05:00
Roman Feldbauer 9b39c4c4d2
TST Fix unreachable code in tests (#16110) 2020-02-16 14:41:26 +01:00
Thomas J Fan 87a59309c7
TST Fixes test for California housing (#16389) 2020-02-05 17:50:37 +01:00
wconnell ce91b6aaec
ENH add as_frame functionality for toy datasets (#15980) 2020-02-02 13:18:47 -05:00
Venkatachalam N ac9c3e1d33 ENH adding return_centers param in make_blobs (#15709) 2020-01-22 22:10:39 +08:00
Adrin Jalali 562c08b7e0 MNT remoe deprecated _refresh_cache usage (joblib related) (#16108) 2020-01-14 09:24:59 +08:00
Rushabh Vasani 11147a13ed Argument validation in make_multilabel_classification() (#16006) 2020-01-04 18:35:25 +01:00
Reshama Shaikh 1cda8ed987 ENH adding as_frame functionality for CA housing dataset loader (#15950)
Co-authored-by: Stephanie Andrews <byronic.string@gmail.com>
2019-12-26 12:30:41 +01:00
Maciej J Mikulski e94b67a4d3 ENH Allow two-element tuple as n_samples argument in make_circles and make_moons (#15707) 2019-12-08 04:51:31 -06:00
Olivier Grisel e81884f919 TST Fix leak in tmp folders in LFW test when pillow is missing (#15676) 2019-11-20 12:00:50 +01: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
Stephan Tulkens a3a1b8fb81 ENH Add optional normalization to fetch_20newsgroups_vectorized (#14740) 2019-10-28 18:53:04 +11:00
Thomas J Fan 4a95e33e63 MNT Make modules private in sklearn.datasets (#15307) 2019-10-27 17:17:23 -04:00
Thomas J Fan 323cb61b7a ENH Adds target names to fetch_openml (#15160) 2019-10-16 13:57:02 +02:00
Cat Chenal 8720684693 ENH Weights parameter of datasets.make_classification changed to array-like from list only - Issue 14760 (#14764) 2019-09-18 14:39:29 -04:00
Samesh Lakhotia 7e53554a9f MAINT Uses pytest.raises in datasets tests (#14676) 2019-08-18 00:20:14 -04:00
Sarra Habchi e49b9d3d75 FIX IndexError in fetch_openml('zoo') (#14623) 2019-08-14 09:51:51 +10:00
Sourav Singh f8e4cc495a ENH Add return_X_y to 20_newsgroups and olivetti_faces (#14259) 2019-07-20 10:30:09 +08:00
Andreas Mueller 03fd26c45b MNT fetch_openml make indices unique in returned dataframe (#14316) 2019-07-13 16:16:55 +08:00
Thomas J Fan cf3e303be6 EHN Add pandas dataframe support to fetch_openml (#13902) 2019-07-12 18:05:59 +02:00
Adrin Jalali da6611148f FIX introduce a refresh_cache param to `fetch_...` functions (#14197) 2019-07-12 18:02:06 +02:00
Adrin Jalali 19c068a2ec MNT towards removing assert_equal, etc (#14222) 2019-07-01 09:13:32 -04:00
Thomas J Fan be17713d85
MAINT Upgrade CI to PyPy 7.1.1, fix CI failure on master (#13912) 2019-06-24 13:39:10 -04:00
Guillaume Lemaitre af4247b152 DEP remove utilities related to mldata (#13798) 2019-05-21 18:37:09 +10: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
Joris Van den Bossche 1f75ffa75f MNT Memory usage of OpenML fetcher: use generator from arff (#13312)
* Memory usage of OpenML fetcher: use generator from arff

* fix actually getting data qualities in all cases

* Add qualities responses

* add workaround for cases where data qualities are not available

* feedback joel
2019-02-28 15:07:45 +01:00
Roman Yurchak 2f35e9e79f Fix test_svmlight_format.py::test_dump on ARM (#13263) 2019-02-26 15:47:11 +01:00
Thomas J Fan b0ab2891b6 TST: check deterministic order for load_sample_images (#13250) 2019-02-26 12:32:38 +01:00