Lars Buitinck
262cbdf8ad
DOC clarify zero_based's implications in SVMlight loader
2012-10-11 11:26:22 +02:00
Andreas Mueller
57001002bb
COSMIT pep8
2012-10-10 09:38:10 +02: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
6c1e0ed858
FIX: typo in ValueError message.
...
It was printing the full array when it should be printing the shape
2012-09-29 09:46:06 +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
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
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
Lars Buitinck
4eedded8db
ENH support opening compressed files in SVMlight reader
2012-06-04 10:50:51 +02:00
Lars Buitinck
d38f4d0e91
DOC + PEP8 SVMlight loader
2012-04-16 10:09:57 +02:00
Lars Buitinck
96af5ae934
TEST + FIX zero_based="auto" behavior in SVMlight loader
2012-04-15 16:50:51 +02:00
Lars Buitinck
7b4842d1db
BUG close files in time in SVMlight loader (with statement)
2012-04-15 16:39:29 +02:00
Lars Buitinck
2ddf1a7b6d
COSMIT pep8 SVMlight loader
2012-04-15 16:33:22 +02:00
Lars Buitinck
c2eeca76ae
COSMIT refactor SVMlight loader
2012-04-14 23:03:53 +02:00
Lars Buitinck
6d6c9a8937
ENH zero_based="auto" support + better n_features=None in load_svmlight_files
2012-04-10 18:20:28 +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
Andreas Mueller
cb00e97dc2
COSMIT pep8
2012-01-23 10:02:01 +01:00
Fabian Pedregosa
498ed0e58c
DOC: docstring update for dump_svmlight_file
2012-01-16 18:24:46 +01:00
Olivier Grisel
8226a986fc
FIX: py3k: string formatting is not supported on byte strings
2011-12-26 11:48:24 +01:00
Olivier Grisel
29c092d706
FIX: py3k need output file in binary mode for svmlight format serialization
2011-12-26 11:20:33 +01:00
Olivier Grisel
8232d49f3d
FIX: in py3k svmlight files must be explicitly opened in binary mode
2011-12-25 18:21:33 +01:00
Olivier Grisel
2cf1ac7449
FIX: py3k - more relative imports
2011-12-23 22:11:46 +01:00
Jake Vanderplas
1725ecb090
remove unused import
2011-12-23 06:26:44 -08: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
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
Lars Buitinck
6f232b9309
ENH multilabel support in SVMlight loader
2011-10-27 14:05:54 +02:00
Lars Buitinck
797041a86c
ENH Cython version of SVMlight loader
...
Speedup of ~30% on MNIST dataset from
http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/multiclass.html
2011-10-20 20:58:01 +02:00
Lars Buitinck
2fb124a8d5
API change in SVMlight reader: handle multiple files with svmlight_load_files
...
This might not seem as convenient as having svmlight_load_file handle multiple
files itself, but it's much easier to keep consistent and document (!).
Also, removed the buffer_mb parameter, which was unused, and introduced a dtype
parameter to determine the underlying type of the returned sample vectors.
2011-10-02 16:16:46 +02:00
Olivier Grisel
f90c8ab278
ENH: remove useless call to strip while staying robust to empty lines
2011-10-01 15:48:25 +02:00
Olivier Grisel
712b12f167
ENH: 30% speed improvements in load_svmlight_file
2011-10-01 11:51:06 +02:00
Olivier Grisel
414ce61a12
DOC: better svmlight_loader / dumper docstrings
2011-10-01 11:35:54 +02:00
Lars Buitinck
31e9a5495d
refactor SVMlight reader and writer
...
* use with block (PEP 343) for exception-safety
* support file-likes and paths everywhere
* don't use 'file' as a variable name, it's a Python built-in
2011-09-30 12:21:54 +02:00
Mathieu Blondel
edd47de388
Add dump_svmlight_file.
2011-09-30 16:30:43 +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