Commit Graph

114 Commits

Author SHA1 Message Date
Raghav R V 354c35cd5b FIX Make LinearSVC/LinearSVR support the deprecated l1/L1, l2/L2 2015-02-25 19:12:27 +05:30
Andreas Mueller 8ef0b9a82f fixes in GMM, TSNE, MDS, LSHForest, exclude SpectralEmbedding 2015-02-10 18:34:31 -05:00
Fabian Pedregosa dbc5d707c6 Change loss names for LinearSVC and LinearSVR()
the names are now consistent across methods

In LinearSVC:
   'l1' -> 'hinge'
   'l2' -> 'squared_hinge'
In LinearSVR:
   'l1' -> 'epsilon_insensitive'
   'l2' -> 'squared_epsilon_insensitive'
2015-02-09 11:09:16 +01:00
Mario Michael Krell cee22175c2 DOC typos and consistency in SVM docstrings 2015-01-28 12:27:06 +01:00
Andreas Mueller c970fb51e7 COSMIT spelling 2015-01-15 15:09:35 -05:00
Sylvain Zimmer 14fe83c6af Fix typo in SVM docstrings 2014-12-24 00:07:18 -05:00
Lars Buitinck 73283e98d1 MAINT remove probability kwarg from SVR and NuSVR
These don't have predict_proba, so setting it to true makes no sense.
2014-12-17 10:07:48 +01:00
Fabian Pedregosa 7e1a0eee08 ENH LinearSVR using liblinear code
Fixes gh-3877.
2014-12-03 20:44:04 +01:00
Lars Buitinck bb3705c4fc DOC fix (Nu)SVR attribute shapes in docstring
Fixes #3673. Shapes were probably copy-pasted from (Nu)SVC.
XXX the attributes actually have strange shapes...
2014-10-12 17:24:38 +02:00
MechCoder 891839cd8d DOC: Explain prediction when decision_function is zero
LogisticRegression and liblinear's predictions differ when the
decision function is zero. Explain why and what to do in that case.

Fixes #3600 (by documenting the won't fix status).
2014-09-05 13:46:44 +02:00
MechCoder a7ccbb8096 MAINT: Made the following changes
1. Use a single loop for both ovr and multinomial conditions
2. Better warning messages for penalty and loss conditions
3. Convergence warnings print only if verbose > 0
4. Used check_X_y instead of check_X
2014-08-30 12:26:40 +02:00
MechCoder 959a4ac698 MAINT: Remove BaseLibLinear for LogisticRegression 2014-08-26 13:58:07 +02:00
jnothman e1891d801b Merge pull request #3489 from jnothman/attributes-doc
[MRG] DOC fix formatting of Attributes sections in documentation
2014-08-02 20:14:53 +10:00
MechCoder 3edfa3cf17 Max iter param in Liblinear is now softcoded 2014-08-01 12:15:57 +02:00
Joel Nothman b3bdb08964 DOC fix formatting of attributes etc. in docstrings 2014-07-28 19:04:59 +10:00
Lars Buitinck 86f8577826 DOC: clear up the big elastic net confusion (I hope)
Several users have asked for LogReg w/ E-net (e.g. #3023). Did some
additional copyediting.
2014-04-02 18:54:24 +02:00
Olivier Grisel a8089b0194 FIX: errors in kernel parameters for OneClassSVM 2013-11-12 14:05:02 +01:00
Joel Nothman a186bc434b DOC fix comment on svm probability param 2013-07-29 14:02:22 +02:00
Olivier Grisel 3be787e33a Add concrete __init__ for LinearSVM 2013-07-28 18:45:40 +02:00
Vlad Niculae 2d97949125 DOC update docstrings to reflect libsvm random_state 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
Andreas Mueller c2575435b6 DOC improve documentation of sample_weight, add to docstring. 2013-07-26 15:06:57 +02:00
Lars Buitinck 5482a73b7d DOC more explicit description of degree param on SVMs 2013-07-09 15:06:14 +02:00
Jaques Grobler 8861833ec9 DOC spellfixes 2013-06-29 16:18:23 +03:00
Joel Nothman 9a8845e913 ENH Create FeatureSelectionMixin for shared [inverse_]transform code
Also rename FeatureSelectionMixin -> SelectorMixin -> _LearntSelectorMixin
And rename sklearn.feature_selection.{selector_mixin -> from_model}
2013-05-21 13:53:12 +10:00
Andreas Mueller 76bb083940 DOC Fixed documentation of kernel parameters: sigm uses gamma, but not degree. Closes #1972. 2013-05-19 16:53:30 +02:00
Stefano Lattarini 67ece78da4 COSMIT various typofixes
As suggested by codespell <https://github.com/lucasdemarchi/codespell>

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
2013-04-11 21:22:14 +02:00
Lars Buitinck 7975ccbf3f COSMIT get rid of undocumented attributes on SVMs
sparse was superseded by _sparse; renamed impl to _impl.
2013-03-09 17:59:57 +01:00
Andreas Mueller b099d4669a DOC add random_state parameter to docs of LogisticRegression and LinearSVC 2013-03-01 11:54:58 +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
Andreas Mueller f25412fd5b ENH nu-SVC doesn't support class_weights 2013-01-03 13:29:46 +01:00
Andreas Mueller dddad84fb6 ENH remove class_weight_label from python side of SVM 2013-01-03 13:21:51 +01:00
Andreas Mueller 754c2d9533 COSMIT pep8 2012-12-22 16:48:17 +01:00
Andreas Mueller f35ab4ba82 DOC document callable kernels in SVM docstring. 2012-11-03 14:31:49 +00:00
Andreas Mueller 7be6c2ce0e FIX two more docstrings. Sorry. 2012-10-16 20:05:27 +01:00
Andreas Mueller 51b06b8203 FIX doctests for max_iter 2012-10-16 16:46:48 +02:00
James Bergstra 5d6540d054 ENH: renaming iter_limit -> max_iter 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 dc943722de COSMIT refactor linear classifiers
Factored out the common code to LinearSVC, LogisticRegression, Perceptron
and SGDClassifier into a LinearClassifierMixin.
2012-09-17 21:06:36 +02:00
Francois Savard 7fb4fa359d Fixed docstring for C param in BaseLibLinear/SVM subclasses.
And added deprecation warning.
2012-08-22 16:05:14 -04:00
Lars Buitinck 4a579f842c BUG remove predict{_log,}_proba from SVR
Also, swapped predict_proba and predict_log_proba docstrings on SVC classes.
2012-07-21 02:20:33 +02:00
Andreas Mueller aa33e0e378 FIX more doctests that I broke. 2012-06-22 22:07:05 +02:00
Subhodeep Moitra 6592fdbee4 P3K: Fixing prints and dtypes 2012-05-11 11:24:27 +02:00
Alexandre Gramfort 15455263b7 API : change back default C to 1. explicitely and epsilon 0.1 2012-05-05 21:57:04 +02:00
Andreas Mueller 77954f292e FIXed many tests 2012-05-05 21:57:04 +02:00
Andreas Mueller 66d00f4748 MISC trying to remove scale_C 2012-05-05 21:57:04 +02:00
David Warde-Farley f4025567c9 Added RST comment about where to find narrative docs. 2012-04-18 19:06:05 -04:00
David Warde-Farley 40745ce455 Rephrased narrative doc reference in docstring. 2012-04-18 18:10:23 -04:00
David Warde-Farley f2a7a7d123 Add pointer to kernel equations from SVC docstring. 2012-04-18 15:50:19 -04:00
Nicolas Pinto f172c7ef09 MISC: verbose should be int, not bool 2012-04-12 21:05:14 -04:00