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
91aaabc745
ENH micro-optimizations in SVMlight loader
...
* Some more type annotations
* Prevent (copying) string slice; instead, trust str.split
to handle trailing newlines.
2012-09-15 14:52:42 +02:00
Mathieu Blondel
6f54691eb3
Check that feature indices are sorted.
2012-08-05 20:34:59 +09: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
Olivier Grisel
68b7ca32cc
FIX: py3k bytes split in svmlight format parser
2011-12-26 09:32:57 +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
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
b8085fefaa
BUG only handle labels specially in SVMlight loader + multilabel
2011-12-20 16:20:38 +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
Lars Buitinck
48fda638a5
ENH incrementally build arrays in SVMlight loader to reduce memory usage
...
Memory use on covtype.binary [1] reduced by nearly 2/3, at the expense of
of a 40% slowdown.
[1] http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html#covtype.binary
2011-11-17 19:43:00 +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