Commit Graph

112 Commits

Author SHA1 Message Date
Andreas Mueller 0a4c12f58a TST remove tempfiles that we create in svmlight tests and agglomerative clustering tests 2015-01-23 11:36:46 -05:00
Calvin Giles cf3d69be29 Moved code out of context block where not required for #3612 2014-08-31 17:30:16 +01:00
Calvin Giles dd9e512ddb Changed f=open() to with open() as f to eliminate ResourceWarnings. Fixes #3410. 2014-08-31 14:44:11 +01:00
Joel Nothman 787e4a0cea DOC extend documentation on sample generators
Also allow make_multilabel_classification to return underlying
distributions.
2014-08-25 19:36:58 +10:00
Olivier Grisel 178d0b6efd FIX assert_array_almost_equal for windows tests 2014-07-10 18:54:33 +02:00
Joel Nothman 28eb1ebe15 Assert or ignore all sequence of sequences deprecation warnings 2014-06-05 11:20:36 +02:00
mjbommar 724b63a16c Replacing the test .todense() methods with .toarray() 2014-05-20 21:44:34 -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
Joel Nothman dbc26ce996 COSMIT remove unused imports and variables 2014-02-03 19:43:56 +11:00
Mathieu Blondel 8f71e46b1d Handle n_features < n_informative case in make_regression.
Useful if n_informative is not explicitly specified, in which case
n_informative=10.
2014-01-09 17:20:13 +09:00
Joel Nothman ca55b40b6f FIX Use Py2.6-compatible string formatting
Also PEP8
2014-01-07 22:33:34 +11:00
Joel Nothman 224a4d593b TST/COSMIT cleaner make_classification and fix tests
* refactored make_classification
* new test for make_classification
* skip problematic common test for class_weights
2014-01-01 23:00:50 +11:00
Olivier Grisel 0a8538ec77 FIX: test failure under windows caused by temp files handling 2013-12-23 16:28:50 +01:00
Lars Buitinck 119cc2407f BUG SVMlight loader should check whether n_features is big enough
scipy.sparse won't complain when it gets a dimensionality that is
too large, causing crashes in estimators.

Fixes #1630.
2013-11-25 19:09:43 +01:00
Lars Buitinck 8a0b317dd1 TST clean up after ourselves in SVMlight test
As spotted by @yarikoptic in #2553; also, the test was previously not
loading the bzip'd file.
2013-10-27 17:59:48 +01:00
Andreas Mueller e42f211435 ENH make sure all "SkipTest" calls have an error message. 2013-10-20 13:43:34 -07:00
Arnaud Joly def7af6944 pep8 2013-07-26 16:01:17 +02:00
Arnaud Joly c6fa3a0318 ENH allows make_multilabel_classification to return label indicator format 2013-07-26 15:57:35 +02:00
Gilles Louppe de86e97548 Merge pull request #2241 from arjoly/grid-cv-multioutput
[MRG] Make sure that cross_validation_score and grid_search_cv support multi-output / multi-target output
2013-07-26 01:33:41 -07:00
Kemal Eren 4657ea2458 test_make_checkerboard was wrong after api change 2013-07-25 19:19:22 +02:00
Kemal Eren 5ad0dfb69b wrote bicluster scoring using jaccard index and hungarian matching 2013-07-25 19:19:21 +02:00
Kemal Eren 2e78d1003c use assert_all_finite 2013-07-25 19:19:18 +02:00
Kemal Eren 642be4899a added new tests for sample data generators 2013-07-25 19:19:18 +02:00
Kemal Eren ca902adcaa wrote methods for generating bicluster data 2013-07-25 19:19:14 +02:00
Arnaud Joly 8436201dee ENH allows make_multilabel_classification to return label indicator f… 2013-07-25 18:24:17 +02:00
Arnaud Joly aac47a20fc ENH remove deprecated things (2) 2013-07-25 16:03:57 +02:00
Lars Buitinck 77695ee27a COSMIT pep8 2013-07-11 11:50:23 +02:00
Justin Vincent d420aafb0f TST + PY3 various fixes
* Little hack in fixes.py that can be removed when NumPy's
  https://github.com/numpy/numpy/issues/3484 is fixed.
* Little cleanup to the fixes implementation.
* Change the numpy workaround and added a test. Fixed some xrange usage.
* Fix the weight boosting test.
* None is not comparable in python3
* Fix a test that depended on dictionary iteration order.
* Python3 removed execfile
* More test fixes.

Fixes #2122.
2013-07-05 20:17:23 +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
Lars Buitinck e89ecd8c6e FIX don't rely on Bunch behavior with fetch_covtype
For consistency with new documentation
(176c9cee08).

Still returns Bunch so as not to break third-party scripts.
2013-06-18 18:02:41 +02:00
Seamus Abshere ff0e88213f ENH reduce size of files produced by dump_svmlight_file 2013-04-16 12:14:58 +02:00
Stefano Lattarini 67ece78da4 COSMIT various typofixes
As suggested by codespell <https://github.com/lucasdemarchi/codespell>

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
2013-04-11 21:22:14 +02:00
Andreas Mueller a1d4d184fe COSMIT pep8 2013-04-02 13:30:55 +02:00
Steven De Gryze 461b58559a PY3 fixing utf8 comments in svm through try/except and six.b 2013-03-19 18:03:45 +01:00
Steven De Gryze 48cbd5e16d replacing numpy array with range for use in random.sample 2013-03-19 18:02:52 +01: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
Olivier Grisel 3379504b6b PY3: fix urlopen in mldata and california housing loaders 2013-03-19 17:56:57 +01:00
Lars Buitinck 81428f70ce TST covertype loader 2013-02-13 21:01:19 +01:00
Lars Buitinck c809368392 BUG revert P3K changes that broke mldata tests 2013-02-10 15:40:41 +01:00
Olivier Grisel 1967a0b323 P3K use six to have a python 2 & 3 compatible code base 2013-02-09 18:08:44 +01:00
Andreas Mueller 8df28b047e TST in testing deprecated load_filenames catch deprecation warning 2013-01-17 19:59:27 +01:00
Lars Buitinck 578034eccd TST sorting CSR matrix indices in SVMlight file handling 2013-01-17 17:11:04 +01:00
Lars Buitinck 49e9391168 BUG don't write comments in SVMlight dumper by default
Fixes part of Issue #1501
2013-01-16 17:19:23 +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