Skip to content

Commit c7c05d6

Browse files
authored
DOC add link to plot_svm_tie_breaking.py in SVC and NuSVC (scikit-learn#29976)
1 parent d2acd79 commit c7c05d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sklearn/svm/_classes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,9 @@ class SVC(BaseSVC):
739739
:term:`predict` will break ties according to the confidence values of
740740
:term:`decision_function`; otherwise the first class among the tied
741741
classes is returned. Please note that breaking ties comes at a
742-
relatively high computational cost compared to a simple predict.
742+
relatively high computational cost compared to a simple predict. See
743+
:ref:`sphx_glr_auto_examples_svm_plot_svm_tie_breaking.py` for an
744+
example of its usage with ``decision_function_shape='ovr'``.
743745
744746
.. versionadded:: 0.22
745747
@@ -1009,6 +1011,8 @@ class NuSVC(BaseSVC):
10091011
:term:`decision_function`; otherwise the first class among the tied
10101012
classes is returned. Please note that breaking ties comes at a
10111013
relatively high computational cost compared to a simple predict.
1014+
See :ref:`sphx_glr_auto_examples_svm_plot_svm_tie_breaking.py` for an
1015+
example of its usage with ``decision_function_shape='ovr'``.
10121016
10131017
.. versionadded:: 0.22
10141018

0 commit comments

Comments
 (0)