Commit Graph

18 Commits

Author SHA1 Message Date
Raghav R V e3afc0e8c9 MAINT move custom error/warning classes into sklearn.exceptions
ENH NonBLASDotWarning -> EfficiencyWarning; Improve error message
DOC Add exceptions module to modules/classes.rst
MAINT Move ConvergenceWarning, UndefinedMetricWarning et al into exceptions
MAINT Remove ChangedBehaviorWarning from base
DOC/FIX Improve DataConversionWarning's docstring
2015-10-19 22:35:35 +02:00
Andreas Mueller b1ddbf4695 Fixes to sparse decision_function, rebase fixes. 2015-03-26 11:44:39 -04:00
Rob Zinkov 0dc37f5f73 Adding sparse support for decision function
Adding test for decision_function on sparse matrices

Fixing typos

Fix Memory Leak

PEP8 fixes

COSMIT PEP8

Fixed class_weight_label problem

Fixed label problem in tests

renamed label_ to classes_

Fixed OneClass bug

Adding kernel tests for sparse matrices

Pass dense data to decision function

Don't check precomputed kernel

use safe_sparse_dot in test, regenerate cython

create a core-dump by testing the binary case... hurray?
2015-03-26 11:35:36 -04:00
Andreas Mueller 9c51bc9547 MAINT remove _label attribute from SVC.
Fixes #1573.
2014-04-03 17:28:08 +02:00
Vlad Niculae c1bab14066 Comment predict params in libsvm 2013-07-27 19:50:26 +02:00
Vlad Niculae 89a58cdcad FIX support random state in libsvm 2013-07-27 19:50:25 +02:00
Imran Haque 65bdff8402 ENH Release GIL when entering LibSVM/Liblinear code
Also fixed some of the exception messages.
2013-04-16 15:14:57 +02:00
Rob Zinkov f9d15a3b41 COSMIT PEP8 2013-02-02 17:06:52 +01:00
Rob Zinkov f3b6dd3296 Adding support indices in svm for sparse matrices 2013-02-02 17:06:52 +01:00
Lars Buitinck 37c1d092f8 COSMIT shut up the build by calling np.import_array in Cython modules
$(make in 2>&1 | wc -l) down from 706 to 517.

Took the liberty of modernizing some of the Cython code while I was at it.
2013-01-10 18:00:21 +01:00
Andreas Mueller ff3bb3ab05 ENH remove class_weight_label from sparse svm 2013-01-03 13:21:51 +01:00
James Bergstra 5d6540d054 ENH: renaming iter_limit -> max_iter 2012-10-16 16:13:00 +02:00
James Bergstra fb48f29429 ENH: Solver iter_limit emits warning instead of raising exception 2012-10-16 16:13:00 +02:00
James Bergstra 812376955a ENH: adding iter_limit to libsvm
This commit adds support for a new libsvm parameter, which permits setting a
hard limit on the while loop in the svm.cpp file, in the Solver::Solve
function. Without this functionality, it has been observed that libsvm hangs
without converging in a reasonable time -- it can take days instead of
seconds, and perhaps it is in fact an infinite loop, I don't know.  This
commit allows the user to set a hard limit on the number of libsvm iterations,
and modifies the libsvm bindings to raise a new exception of SolverTimeout
when this limit is reached.
2012-10-16 16:13:00 +02:00
Andreas Mueller a6a8771e0c MISC use assert instead of value error. 2012-09-03 11:02:14 +02:00
Andreas Mueller 79ebf6c088 ENH added low-level bail out in sparse svm 2012-09-03 11:02:13 +02:00
Andreas Mueller 3a5e1813b5 COSMIT renaming scikits.learn to sklearn in some places 2012-03-02 13:50:09 +01:00
Lars Buitinck bc6255e8e7 ENH merge sparse and dense SVMs, part 1
* enable sparse matrix support in formerly dense versions
* remove DenseBaseLibSVM
* move sparse.libsvm to libsvm_sparse
2012-01-27 17:41:22 +01:00