10000 [MRG] DOC Adds link to User Guide for SVC's probability parameter (#1… · qdeffense/scikit-learn@02be994 · GitHub
[go: up one dir, main page]

Skip to content

Commit 02be994

Browse files
thomasjpfanjnothman
authored andcommitted
[MRG] DOC Adds link to User Guide for SVC's probability parameter (scikit-learn#14618)
1 parent cd20f1a commit 02be994

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

sklearn/svm/classes.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ class SVC(BaseSVC):
487487
488488
probability : boolean, optional (default=False)
489489
Whether to enable probability estimates. This must be enabled prior
490-
to calling `fit`, and will slow down that method.
490+
to calling `fit`, will slow down that method as it internally uses
491+
5-fold cross-validation, and `predict_proba` may be inconsistent with
492+
`predict`. Read more in the :ref:`User Guide <scores_probabilities>`.
491493
492494
tol : float, optional (default=1e-3)
493495
Tolerance for stopping criterion.
@@ -686,7 +688,9 @@ class NuSVC(BaseSVC):
686688
687689
probability : boolean, optional (default=False)
688690
Whether to enable probability estimates. This must be enabled prior
689-
to calling `fit`, and will slow down that method.
691+
to calling `fit`, will slow down that method as it internally uses
692+
5-fold cross-validation, and `predict_proba` may be inconsistent with
693+
`predict`. Read more in the :ref:`User Guide <scores_probabilities>`.
690694
691695
tol : float, optional (default=1e-3)
692696
Tolerance for stopping criterion.

0 commit comments

Comments
 (0)
0