Commit Graph

83 Commits

Author SHA1 Message Date
Bryan Woods c3f973b1de FIX supports 64 bit group ID and indexes (#12736) 2019-01-09 09:52:10 +11:00
Andreas Mueller 952ef6637a MRG Drop legacy python / remove six dependencies (#12639) 2019-01-03 15:50:05 +02:00
Thomas Moreau d25da1be20 FIX make joblib utils private, and remove mentions of externals.joblib (#12345) 2018-11-20 10:53:52 +11:00
TakingItCasual 1e052e9da9 Converting http to https (2)... (#12292) 2018-10-04 23:06:14 +02:00
Roman Yurchak e0e7387606 Remove unused private functions (#12253) 2018-10-03 21:08:17 -04:00
Ronan Lamy 5592a2eda9 [MRG] PyPy support for all but a couple of estimators (#11010) 2018-07-20 14:39:53 +10:00
Joel Nothman 14e7c328df Restructure access to vendored/site Joblib (#11471)
In order to fix #11408, this swaps `joblib` and `_joblib`. It however, allows users to access joblib's `Memory` or `Parallel` functionality without accessing `sklearn.externals._joblib` by importing `Memory`, `Parallel`, etc. into `sklearn.utils`.
2018-07-17 18:02:11 +02:00
(Venkat) Raghav, Rajagopalan b6f8865b0a [MRG + 1 (rv) + 1 (alex) + 1] Add a check to test the docstring params and their order (#9206)
* add automatic test of docstrings for function / method signatures using numpydoc
2017-07-11 18:42:10 +02:00
Olivier Grisel a39c8ab75c ENH svmlight chunk loader (#935) 2017-06-16 18:11:47 +02:00
Naoya Kanai 6579220588 [MRG+1] Drop NumPy < 1.8 (#8874) 2017-06-07 17:06:06 +02:00
Josh Karnofsky 9551ec85ea DOC add spaces before colons in docstrings (#7589) 2016-10-06 14:01:12 +11:00
Ganiev Ibraim 928f72447e [MRG] fix #5269: Overflow error with sklearn.datasets.load_svmlight (#7101)
* fix for #5269, overflow error

* test with long qid added

* What's new section added
2016-08-03 13:53:35 +10:00
Tom Dupré la Tour eed5fc5f0f Merge pull request #6395 from yenchenlin1994/make-dump_svmlight_file-support-sparse-y
[MRG+1] Make dump_svmlight_file support sparse y (fixes #6301)
2016-03-23 19:19:43 +01:00
YenChenLin 22d7cd5cd0 Make dump_svmlight_file support sparse y 2016-03-24 01:22:48 +08:00
Lars Buitinck 2e4aafd19c MAINT remove my email address
I'm getting too many individual support requests. People should
use the mailing list.
2016-03-04 10:43:41 +01:00
KamalakerDadi f2e35411fa Added more versions of 0.17 2015-11-04 00:02:52 +01:00
Chi Zhang 9d01a1c8d4 changed shape parameter 2015-09-02 14:18:59 -04:00
Chi Zhang 150267f9b1 added comments for y in dump_svmlight_file() method 2015-09-01 10:49:23 -04:00
Lars Buitinck 8932587159 FIX dump_svmlight_file multilabel arg: should be last
... in case someone somewhere used this function with positional
arguments. Spotted by @amueller.

Also pep8, listed in what's new.
2015-07-13 23:36:45 +02:00
Chih-Wei Chang 82ea224dfa Add multilabel support for dump_svmlight_file. 2015-07-12 13:51:27 +08:00
Raghav R V b3fbccca38 FIX various mismatch between docstring and signature params
DOC max_iterations -> max_iter. Make it consistent with kmeans

MAINT Replace the deprecated dx parameter with d in the docstrings

MAINT Deprecation warning for max_iterations parameter.
2015-01-16 11:54:57 -05:00
gpassino 969e677353 DOC fix kernels documentation inconsistencies
Fixes gh-3916, gh-2901.
2014-12-01 11:51:36 +01:00
Danny Sullivan 92a02ad13a adding example for memory wrapper 2014-10-23 16:51:21 +02:00
Lars Buitinck a7a05120e2 MAINT: handle frombuffer with empty 1st arg in utils.fixes 2014-09-22 17:23:51 +02:00
Andreas Mueller c235c3b566 ENH add allowed_sparse named argument for @ogrisel 2014-07-20 15:31:28 +02:00
Andreas Mueller 6e2a83b4e1 remove check_arrays stuff and old input validation 2014-07-20 13:31:45 +02:00
Lars Buitinck bb743ddb2a ENH speed up SVMlight loader using Cython's array support
Loading the binary covtype dataset from
http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html
now takes 1/3 less wall clock time, which includes disk I/O and
decompression (bzip2).

Got rid of ArrayBuilder in the process.
2014-01-05 22:10:02 +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 ad15405f3c ENH 10x speedup in dump_svmlight_format
As measured by dumping

X = rand(10000, 4000, density=.0125)
y = np.random.randint(0, 5, X.shape[0])

to /dev/null.
2013-09-20 12:13:00 +02:00
Jaques Grobler 8861833ec9 DOC spellfixes 2013-06-29 16:18:23 +03:00
Mathieu Blondel 64760f25e7 Import gzip and bz2 only if necessary. 2013-05-09 17:40:33 +09:00
Robert Layton dacfd8bd5d DOC: Replaced all BSD style licenses with "BSD 3 clause"
Replaced all BSD style licenses with "BSD 3 clause"
Not checked yet!

Removed duplicate "3 clause, 3 clause"

Removed trailing period if exists

Fixed some missed licences, still about 50 to do, but those can be automated

Think I got the last of them.

Apparently me and sed have different ideas of regex.

Found a few more
2013-04-30 08:34:46 +02:00
Seamus Abshere ff0e88213f ENH reduce size of files produced by dump_svmlight_file 2013-04-16 12:14:58 +02:00
Andreas Mueller a1d4d184fe COSMIT pep8 2013-04-02 13:30:55 +02: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
Raul Garreta 71d1a7c135 PY3: used six.u to fix unicode variables in svmlight 2013-03-19 17:57:02 +01:00
Mathieu Blondel 50e22dd677 Update load_svmlight_file docstring. 2013-03-06 20:30:27 +09:00
Olivier Grisel 1967a0b323 P3K use six to have a python 2 & 3 compatible code base 2013-02-09 18:08:44 +01:00
Lars Buitinck 57b86fc434 P3K use six.string_types and six.PY3 2013-02-03 20:12:42 +01:00
Lars Buitinck c59af39337 BUG hotfix for issue #1501: sort indices in SVMlight i/o
CSR matrices are strange beasts.
2013-01-17 00:40:13 +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 754c2d9533 COSMIT pep8 2012-12-22 16:48:17 +01:00
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