Commit Graph

39 Commits

Author SHA1 Message Date
Andreas Mueller 952ef6637a MRG Drop legacy python / remove six dependencies (#12639) 2019-01-03 15:50:05 +02:00
Bartosz Michałowski fa98a72dcc MNT Replaced all occurrences of assert_true and assert_false with assert (#12588) 2018-11-28 09:16:26 +08:00
Hanmin Qin 43e3a02085
MNT Remove unused assert_true imports (#12560) 2018-11-11 11:08:37 +08:00
Yaroslav Halchenko 362cb3bcab TST autoreplace assert_true(...==...) with plain assert (#12547) 2018-11-11 09:05:34 +08:00
Roman Yurchak d582e97944 TST Pytest parametrization part2 - cluster, datasets and decomposition modules (#11142) 2018-06-01 10:26:02 +08:00
Nicholas Nadeau, P.Eng., AVS 3e26fc63be MAINT Fixing Typos (#11017) 2018-04-24 09:32:25 +10:00
Chris Catalfo ff3230cdd1 ENH Return_X_y should be available on more dataset loaders/fetchers (#10734) (#10774) 2018-03-25 11:26:06 +08:00
jotasi afe540c7f2 Add deprecated scipy image-related functions in externals._pilutil (#10427) 2018-01-18 14:27:59 +01:00
Mohamed Maskani 7182a43a6f [MRG+1] Take over PR #7647 - Add a "filename" attribute to datasets that have a CSV file (#9101)
* add filename attribute for load_iris

* add filename attribute for load_boston

* add filename attribute for load_linnerud
2017-12-04 15:20:21 +01:00
Joan Massich 76494a1462 [MRG+1] Remove hard dependency on nose (#9670) 2017-09-10 13:21:40 +10:00
Sebastin Santy dc43486806 Remove unused imports (#9235) 2017-07-01 05:57:54 -07:00
jaroslaw-weber c2b0de59aa [MRG+1] added DESCR attribute in diabetes data (#8840)
*  added DESCR attribute in diabetes data

*  added DESCR attribute in diabetes data (fix flake8)

*  added DESCR attribute in diabetes data (added test)
2017-05-08 10:02:38 +02:00
Tyler Lanigan eb9fe80e50 DOC add example regarding feature scaling (#7912)
also add load_wine to datasets
2017-02-14 00:27:19 +11:00
Konstantin Podshumok 9b2aac9e5c [MRG + 1] [TST] (half-cosmetic) use less nose.tools import to simplify future transition to py.test (#7384)
* use less nose.tools import to simplify future transition to activly developing test suites/runners

* assert_equal -> assert_array_equal in test_feature_hasher_pairs_with_string_values

and one missed ImportError that should be replaced with AttributeError

* test for py2.6 compat with except AttributeError

* fix importing of SkipTest

* force using nose in python2.6 for now

* there was no assert_dict_equal in py2.6. but we can use assert_equal

although failed test will look a little bit ugly

* remove nose imports from doc/datasets
2016-10-07 12:46:52 -04:00
rickiepark 6c8a1b1fcd fix error in test code 2016-10-07 21:46:19 +09:00
rickiepark fd40cbcae3 add a test 2016-10-07 17:55:13 +09:00
Manvendra Singh 8994d0ef61 [MRG+1] added return_X_y option to toy datasets in sklearn.datasets (#7154)
* added return_X_y support to more dataset loaders

* fix typo

* updated whats_new.rst

* fix indentation for version added tag

* call astype before the branching

* better formatting in whats_new.rst

* better formatting

* updated what's new
2016-08-07 15:07:07 +02:00
Manvendra Singh c98adf7d58 [MRG] load_breast_cancer dataset: added return_X_y option (#7152)
* added return_X_y option to breast_cancer_dataset, tests included

* fix typo

* update whats_new

* removed extra space

* improved whats_new changelog
2016-08-06 11:52:23 +02:00
Manvendra Singh b8be0198b6 [MRG + 1] load_iris dataset: added return_X_y option (#7049)
* load_iris dataset:added return_X_y option

* Updated return type description

* improved return type description

* Removed extra line

* Added extra line

* Added test sentence.

* Remove sample text

* Fixes

* pep8

* Added version tag

* added entry in whats_new

* fixed extra space
2016-07-29 14:31:36 -04:00
Andreas Mueller e2bc2a756d add __dir__ to bunch for better autocomplete (#7090) 2016-07-27 10:36:36 +02:00
Loïc Estève ae70c555ce Fix reading of bunch pickles
that have been generated with scikit-learn < 0.17
2016-01-26 15:16:01 +01:00
Ishank Gulati c8406fbfcb Breast cancer dataset added 2015-10-01 16:47:01 -04:00
jfraj e4b9ff6c98 Adding test to ensure bunch consistency after pickle
Updated Bunch getattr definition to raise the appropriate error
(should raise Attribute error not KeyError)

See issue #4600
2015-04-16 18:25:13 -04:00
Michael Hanke 4c370a7357 BF: load_boston() return 13 features, but 14 feature names
Last column has the target value, hence only report first 13 names.
2014-02-17 15:24:35 +01:00
Arnaud Joly aac47a20fc ENH remove deprecated things (2) 2013-07-25 16:03:57 +02:00
Lars Buitinck 41b1f9a909 FIX charset -> encoding in load_files
Removed the deprecation of charse_error; this isn't going to be pickled
anyway. Renamed charset_error to decode_error, which I think is more
suggestive of its meaning than encoding_error.
2013-07-04 13:12:58 +02:00
Olivier Grisel a81df3b11b PY3: fix for string literals in datasets' test_base.py 2013-03-19 18:02:34 +01:00
Steven De Gryze 5993ef5082 PY3: use b() convenience function for string literals
Had to use an exception in lfw.py; six.u didn't work
2013-03-19 17:57:02 +01:00
Andreas Mueller 8df28b047e TST in testing deprecated load_filenames catch deprecation warning 2013-01-17 19:59:27 +01:00
Andreas Mueller 38f784b60a TST somewhat hacky fix for tests on image loading. 2013-01-05 19:49:16 +01:00
Brian Cajes c7fa3462e4 checking data.shape for each test dataset 2013-01-05 18:15:44 +01:00
Brian Cajes 305b9ecf94 bring datasets.base to 97% coverage with a few more tests 2013-01-05 18:15:17 +01:00
Brian Cajes 30dfa01328 Improving code coverage for datasets module. Moved dataset imports inside test_data_home, because it is preferable for import errors to only affect the tests that require those imported methods. My first commit to scikit. -bcajes 2013-01-05 18:15:17 +01:00
Brian Cajes 9364e3973f revert to original import placement style 2012-12-31 12:44:11 +01:00
Brian Cajes 2430f416f2 Improving code coverage for datasets module. Moved dataset imports inside test_data_home, because it is preferable for import errors to only affect the tests that require those imported methods. My first commit to scikit. -bcajes 2012-12-31 12:44:11 +01:00
Mathieu Blondel 6eec2e651b Even more sklearn.utils.testing. 2012-10-26 00:09:46 +09:00
Fabian Pedregosa ddf4b72109 Move project directory from scikits.learn to sklearn 2011-09-02 12:06:57 +02:00
Fabian Pedregosa 68f27e3790 Revert "Move project directory from scikits.learn to sklearn"
This reverts commit fd0d3b879d.
2011-09-02 12:03:18 +02:00
Fabian Pedregosa fd0d3b879d Move project directory from scikits.learn to sklearn 2011-09-02 11:38:24 +02:00