Commit Graph

60 Commits

Author SHA1 Message Date
Mathieu Blondel 6eec2e651b Even more sklearn.utils.testing. 2012-10-26 00:09:46 +09:00
Andreas Mueller d50c0cb06c COSMIT pep8 2012-10-02 17:31:00 +01:00
Fabian Pedregosa 04b5e98400 Add support for query_id in dump_svmlight_file
Added a test and docstring
2012-09-29 10:19:07 +02:00
Fabian Pedregosa 58c1b5decd Add test for load_svmlight_files 2012-09-28 20:56:15 +02:00
Fabian Pedregosa 398fa9d136 FIX: query_id parameter and other cosmetic changes 2012-09-28 11:24:28 +02:00
Fabian Pedregosa 6fd39fbf12 Add support for preference contraints in svmlight format.
This feature is explained in http://svmlight.joachims.org/ and adds
the ability to control which pairs are considered when dealing with
pairwise loss functions (e.g. for SVMrank).

In order to preserve API compatibility, I return this information (if
present) as a second column to the y vector.
2012-09-26 17:48:13 +02:00
Lars Buitinck 6eb4bb3841 TST (near-)empty lines and explicit zeros in SVMlight loader 2012-09-05 15:39:57 +02:00
Mathieu Blondel ef8aa402ed Add missing test file. 2012-08-05 20:42:47 +09:00
Mathieu Blondel 6f54691eb3 Check that feature indices are sorted. 2012-08-05 20:34:59 +09:00
Lars Buitinck 35b24cac4c ENH allow user-specified comment in SVMlight dumper 2012-07-23 10:46:18 +02:00
Lars Buitinck e1ba110829 ENH make generated SVMlight files self-describing in a comment
Comment is *not* used to parse the files, since that would break
compatibility with other tools; it's just there for the user.
2012-07-21 14:32:29 +02:00
Lars Buitinck 2530791e2e ENH better input validation for dump_svmlight_file
Also, do validation *before* opening any files.
2012-07-21 14:32:29 +02:00
Lars Buitinck f6bd86e290 COSMIT cleanup tests with pyflakes 2012-07-21 12:57:49 +02:00
Olivier Grisel 0240e3d85b work on smmlight serualizaer to preserve double precision values 2012-07-10 01:05:50 +02:00
Olivier Grisel 51661e7bb3 FIX #937: preserve double precision values in svmlight serializer 2012-07-07 20:14:58 +02:00
Lars Buitinck 669bbf2de1 BUG do not close fd passed by user in SVMlight loader
+ document the behavior of load_svmlight_file better
2012-06-13 16:31:39 +02:00
Lars Buitinck ddb7b4df81 ENH always support file descriptors in SVMlight loader
Previously only supported in Python 3.x
2012-06-11 14:11:50 +02:00
Vlad Niculae f26e2371b6 ENH: make_regression supports multiple targets 2012-06-05 18:18:00 +03:00
Lars Buitinck 4eedded8db ENH support opening compressed files in SVMlight reader 2012-06-04 10:50:51 +02:00
Andreas Mueller 3e5f2e5e08 ENH backport "assert_less" and "assert_greater", rename "assert_lower" and use it everywhere :) 2012-05-06 15:43:29 +02:00
Lars Buitinck 7bc2ca74c7 Merge pull request #756 from larsmans/svmlight_fix
MRG re-allow zero-based indexes in SVMlight files
2012-04-16 06:13:13 -07:00
Lars Buitinck 96af5ae934 TEST + FIX zero_based="auto" behavior in SVMlight loader 2012-04-15 16:50:51 +02:00
Lars Buitinck 2ddf1a7b6d COSMIT pep8 SVMlight loader 2012-04-15 16:33:22 +02:00
Lars Buitinck 32f9a7cefb COSMIT replace utils.testing.assert_in with Nose-compatible functions 2012-04-05 14:39:07 +02:00
Lars Buitinck 2c293ebc40 BUG re-allow zero-based indexes in SVMlight files
Fixes issue #750.
2012-04-04 22:44:53 +02:00
Peter Prettenhofer 73320c4545 Merge branch 'master' into gradient_boosting
Conflicts:
	doc/modules/ensemble.rst
	sklearn/ensemble/tests/test_forest.py
	sklearn/tree/_tree.c
	sklearn/tree/tree.py
2012-03-03 11:40:01 +01:00
Olivier Grisel 5f4ca06734 FIX: make LFW data shapes consistent with Olivetti faces 2012-02-11 13:58:33 +01:00
Peter Prettenhofer 209d23de5e Merge remote branch 'upstream/master' into gradient_boosting
Conflicts:
	sklearn/ensemble/tests/test_forest.py
2012-01-31 21:12:49 +01:00
Peter Prettenhofer 2d6e484f3e fix: wrong assertion 2012-01-24 09:49:23 +01:00
Peter Prettenhofer 16c5ed0235 added artificial dataset generator from Hastie et al. 2009, Example 10.2 2012-01-24 09:45:49 +01:00
Andreas Mueller cb00e97dc2 COSMIT pep8 2012-01-23 10:02:01 +01:00
Charles McCarthy 7d1782ceb7 Added basic test for filenames consistency when all specified. 2012-01-20 17:10:28 +00:00
Olivier Grisel 9e9bd1c4d9 FIX: ensure fetch_20newsgroups_vectorized outputs CSR matrices to work with cross validators 2011-12-30 14:13:23 +01:00
Olivier Grisel 0f8b3c2097 FIX: fix test: integers are valid file descriptors in py3k 2011-12-26 17:42:06 +01:00
Olivier Grisel bc18af34bd FIX: py3k need explicit bytes buffers for svmlight format serialization 2011-12-26 10:58:38 +01:00
Andreas Mueller 3a6e490e05 COSMIT pep8 2011-12-23 19:12:52 +01:00
Jake Vanderplas 7f53024ae9 remove unused imports 2011-12-23 09:27:40 -08:00
Vlad Niculae 512c9116f2 FIX typo that broke the test 2011-12-22 14:23:31 +01:00
Vlad Niculae d0ac763f2e Allow unlabeled samples in multilabel ex, collab between @vene and @mblondel on the plane 2011-12-22 12:42:49 +01:00
Andreas Mueller 87a85c189a Merge pull request #417 from larsmans/multilabel
MRG : ENH multilabel learning in OneVsRestClassifier
2011-12-21 08:10:23 -08:00
Lars Buitinck 18a70f7e99 Merge remote-tracking branch 'vene/lars_multilabel' into multilabel
Conflicts:
	sklearn/tests/test_multiclass.py
2011-12-21 13:54:42 +01:00
Andreas Mueller 17afd07fcf Merge pull request #490 from mblondel/news20_loader
WIP : Vectorized news20 dataset loader.
2011-12-21 02:53:26 -08:00
Mathieu Blondel 3d2ea0d3e6 Use int16 for more compactness. 2011-12-21 11:37:33 +01:00
Lars Buitinck ad53ecd657 Merge branch 'master' into multilabel
Conflicts:
	sklearn/datasets/_svmlight_format.c

Solved by re-cythonizing.
2011-12-21 11:15:33 +01:00
Vlad Niculae 5ebcd59a38 EHN: multilabel samples generator can create different number of labels per instance 2011-12-21 10:54:04 +01:00
Lars Buitinck ef6a563f25 BUG fix off-by-one error in SVMlight format loader
Apparently, column indices in SVMlight/LibSVM data files are one-indexed.
2011-12-20 17:18:40 +01:00
Mathieu Blondel 2ac0b02298 Return bunch object. 2011-12-20 17:07:35 +01:00
Lars Buitinck 4761dc3f42 COSMIT rename load_vectorized_20newsgroups + DOC + pep8 2011-12-20 15:38:09 +01:00
Mathieu Blondel 1648c2163b Multilabel classification dataset generator. 2011-12-20 13:47:22 +01:00
Mathieu Blondel c3aa2d7e8d Merge multilabel branch with master.
Conflicts:
	sklearn/datasets/_svmlight_format.c
	sklearn/datasets/_svmlight_format.pyx
	sklearn/datasets/tests/test_svmlight_format.py
	sklearn/preprocessing/__init__.py
2011-12-20 12:41:42 +01:00