8000 [MRG] Added Tips in SVM user guide for tuning C parameter in LinearSV… · sjtrny/scikit-learn@bfab306 · GitHub
[go: up one dir, main page]

Skip to content

Commit bfab306

Browse files
Xing Han Luagramfort
authored andcommitted
[MRG] Added Tips in SVM user guide for tuning C parameter in LinearSVC and LinearSVR (scikit-learn#12185)
* Added Tip for tuning C parameter in LinearSVC/SVR * Added reference about performance improvement * Clearer explanation about large C values * Update svm.rst
1 parent cbbe489 commit bfab306

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/modules/svm.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,11 @@ Tips on Practical Use
392392
* **Setting C**: ``C`` is ``1`` by default and it's a reasonable default
393393
choice. If you have a lot of noisy observations you should decrease it.
394394
It corresponds to regularize more the estimation.
395+
396+
:class:`LinearSVC` and :class`LinearSVR` are less sensitive to ``C`` when
397+
it becomes large, and prediction results stop improving after a certain
398+
threshold. Meanwhile, larger ``C`` values will take more time to train,
399+
sometimes up to 10 times longer, as shown by Fan et al. (2008)
395400

396401
* Support Vector Machine algorithms are not scale invariant, so **it
397402
is highly recommended to scale your data**. For example, scale each
@@ -434,6 +439,13 @@ Tips on Practical Use
434439
be calculated using :func:`l1_min_c`.
435440

436441

442+
.. topic:: References:
443+
444+
* Fan, Rong-En, et al.,
445+
`"LIBLINEAR: A library for large linear classification."
446+
<https://www.csie.ntu.edu.tw/~cjlin/papers/liblinear.pdf>`_,
447+
Journal of machine learning research 9.Aug (2008): 1871-1874.
448+
437449
.. _svm_kernels:
438450

439451
Kernel functions

0 commit comments

Comments
 (0)
0