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