Commit Graph

47 Commits

Author SHA1 Message Date
MechCoder 94bda65a75 FIX: Remove raw_coef_ attribute that eats up memory 2014-07-18 12:06:35 +02:00
mjbommar 724b63a16c Replacing the test .todense() methods with .toarray() 2014-05-20 21:44:34 -04:00
dengemann 3a6c0344e9 ENH: more of this 2013-11-29 13:55:39 +01:00
Vlad Niculae d65de5e76c Fix libsvm seed when predict_proba in tests and examples 2013-07-27 19:50:25 +02:00
Vlad Niculae 89a58cdcad FIX support random state in libsvm 2013-07-27 19:50:25 +02:00
Vlad Niculae f2643c87e1 Add failing test for libsvm random state proba 2013-07-27 19:50:25 +02:00
Gael Varoquaux 62cd4a295c COMPAT: no assert_warns in np 1.3 2013-07-27 16:52:43 +02:00
Andreas Mueller 5a1fde1194 COSMIT fixing some unused imports, adding stuff to __all__, and light pep8 (not all whitespace to make rebasing less painful) 2013-07-27 15:44:17 +02:00
Arnaud Joly 1fb634c627 FIX warning test 2013-07-27 15:01:51 +02:00
Andreas Mueller db6f00514a TST FIX random state for LibLinear sparse tests 2013-03-03 18:24:54 +01:00
Lars Buitinck 6bf4c90c5d ENH sparsify method for L1-reg linear models
Currently implemented on LinearSVC, LR and SGD.
2013-02-23 12:11:56 +01:00
Rob Zinkov 418b6a1155 Adding test to check support_ is equal in dense and sparse matrices 2013-02-02 17:06:52 +01:00
Lars Buitinck 7267e4e308 COSMIT rm deprecated svm.sparse module 2013-01-22 02:15:56 +01:00
Andreas Mueller c75dd39fba FIX sort indices in CSR matrix for SVM 2013-01-17 16:56:54 +01:00
Andreas Mueller 754c2d9533 COSMIT pep8 2012-12-22 16:48:17 +01:00
Andreas Mueller 33899d0bca ENH make sparse svm test more robust, catch warning on deprecated class 2012-11-25 18:59:54 +00:00
GaelVaroquaux 370e3ca0da BUG: dot on sparse matrices broken in recent numpy 2012-11-06 09:20:59 +01:00
Daniel Nouri 3d1c8fbef9 Improve svm.base test coverage: 92% -> 98% 2012-11-03 16:48:14 +01:00
James Bergstra 159fb129de ENH: assert -> assert_equals 2012-10-16 16:13:00 +02: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
Lars Buitinck 706319655a ENH refactor liblinear prediction code and add classes_ member
Liblinear bindings removed from LinearSVC and LogisticRegression
prediction code in favor of NumPy code.

* no more copying of X at predict time
* no more unchecked malloc at predict time
* -4000 lines of C code
* simpler handling of coef_ and intercept_

Also, support symbolic class names and classes_ on both estimators.
2012-09-13 00:16:42 +02:00
Andreas Mueller 1c1ea99b74 DOC added some comments to the sparse precomputed kernel tests. 2012-09-03 11:02:14 +02:00
Andreas Mueller 50a2d057ab FIX add exception, check exception, if sparse.SVC is called with kernel='precomputed' 2012-09-03 11:02:14 +02:00
Andreas Mueller 31af7521d5 ENH support custom kernels on sparse matrices 2012-09-03 11:02:13 +02:00
Gael Varoquaux fead9ace75 COSMIT: only classes should have capitals 2012-05-06 18:48:20 +02:00
Andreas Mueller eeb6dcc4cc ENH use random states everywhere, never call np.random. 2012-05-06 18:35:14 +02:00
Andreas Mueller 66d00f4748 MISC trying to remove scale_C 2012-05-05 21:57:04 +02:00
Alexandre Gramfort 89d73c7b1f FIX : sparse SVC clone with callable kernel 2012-04-21 18:08:15 +02:00
Andreas Mueller 868eac134f Merge branch 'master' into svm_class_weights
Conflicts:
	doc/modules/svm.rst
	doc/tutorial.rst
	doc/whats_new.rst
	sklearn/linear_model/logistic.py
	sklearn/svm/base.py
	sklearn/svm/classes.py
	sklearn/svm/sparse/classes.py
	sklearn/svm/tests/test_sparse.py
	sklearn/svm/tests/test_svm.py
2012-02-15 00:12:02 +01:00
Alexandre Gramfort ad8e4912cb TST: use assert_true instead of assert + remove some relative imports 2012-02-11 15:43:03 +01:00
Alexandre Gramfort f0dc6116ad API: set scale_C to True by default in libsvm/liblinear models 2012-02-11 14:42:47 +01:00
Andreas Mueller 0e8312312b ENH: moved class_weight parameter in svms from fit to ``__init__``. 2012-02-07 00:24:02 +01:00
Lars Buitinck 41ba56fdb2 ENH merge sparse and dense SVMs, part 3: adapt sparse tests 2012-01-27 17:41:25 +01:00
Lars Buitinck 0b0bcfc311 ENH merge dense/sparse LinearSVC, part 4: deprecate sparse.LogisticRegression 2012-01-16 21:34:55 +01:00
Lars Buitinck 9b0fbab0d1 ENH merge dense/sparse LinearSVC, part 3: deprecate sparse.LinearSVC 2012-01-16 18:27:14 +01:00
Alexandre Gramfort db74b538e5 Merge remote-tracking branch 'origin/master' into n_samples_scaling
Conflicts:
	sklearn/svm/sparse/base.py
	sklearn/svm/tests/test_sparse.py
2011-12-18 12:45:58 +01:00
Alexandre Gramfort 8ec89a9fc2 ENH : C scaling of sparse models 2011-12-18 12:39:26 +01:00
Andreas Mueller 25c93f4af6 COSMIT: pep8 2011-12-15 17:24:53 +01:00
Alexandre Gramfort fdbd584a93 s/C_scale_n_samples/scale_C 2011-11-11 21:36:19 -05:00
Alexandre Gramfort 6def64c3e6 ENH : adding support for scaling by n_samples of the C parameter in libsvm and liblinear models 2011-11-11 16:43:03 -05:00
Fabian Pedregosa 09677e0193 FIX: do not use reshape in libsvm sparse bindings.
This should fix issues of people using this in parallel.
2011-11-07 15:05:37 +01:00
Olivier Grisel 78dd8b5626 batch trailing spaces cleanup 2011-09-06 23:12:26 +02: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