Skip to content

Commit d2acd79

Browse files
DOC plot classification probability (scikit-learn#29921)
Co-authored-by: adrinjalali <adrin.jalali@gmail.com>
1 parent 8b06fa6 commit d2acd79

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

doc/modules/linear_model.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,7 @@ regularization.
891891
* :ref:`sphx_glr_auto_examples_linear_model_plot_logistic_multinomial.py`
892892
* :ref:`sphx_glr_auto_examples_linear_model_plot_sparse_logistic_regression_20newsgroups.py`
893893
* :ref:`sphx_glr_auto_examples_linear_model_plot_sparse_logistic_regression_mnist.py`
894+
* :ref:`sphx_glr_auto_examples_classification_plot_classification_probability.py`
894895

895896
Binary Case
896897
-----------

doc/modules/multiclass.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ in which cell [i, j] indicates the presence of label j in sample i.
228228
.. rubric:: Examples
229229

230230
* :ref:`sphx_glr_auto_examples_miscellaneous_plot_multilabel.py`
231+
* :ref:`sphx_glr_auto_examples_classification_plot_classification_probability.py`
231232

232233
.. _ovo_classification:
233234

doc/modules/svm.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ properties of these support vectors can be found in attributes
112112

113113
* :ref:`sphx_glr_auto_examples_svm_plot_separating_hyperplane.py`
114114
* :ref:`sphx_glr_auto_examples_svm_plot_svm_anova.py`
115+
* :ref:`sphx_glr_auto_examples_classification_plot_classification_probability.py`
115116

116117
.. _svm_multi_class:
117118

sklearn/gaussian_process/_gpc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,9 @@ def optimizer(obj_func, initial_theta, bounds):
641641
>>> gpc.predict_proba(X[:2,:])
642642
array([[0.83548752, 0.03228706, 0.13222543],
643643
[0.79064206, 0.06525643, 0.14410151]])
644+
645+
For a comaprison of the GaussianProcessClassifier with other classifiers see:
646+
:ref:`sphx_glr_auto_examples_classification_plot_classification_probability.py`.
644647
"""
645648

646649
_parameter_constraints: dict = {

sklearn/linear_model/_logistic.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,9 @@ class LogisticRegression(LinearClassifierMixin, SparseCoefMixin, BaseEstimator):
10951095
[9.7...e-01, 2.8...e-02, ...e-08]])
10961096
>>> clf.score(X, y)
10971097
0.97...
1098+
1099+
For a comaprison of the LogisticRegression with other classifiers see:
1100+
:ref:`sphx_glr_auto_examples_classification_plot_classification_probability.py`.
10981101
"""
10991102

11001103
_parameter_constraints: dict = {

sklearn/svm/_classes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,9 @@ class SVC(BaseSVC):
853853
854854
>>> print(clf.predict([[-0.8, -1]]))
855855
[1]
856+
857+
For a comaprison of the SVC with other classifiers see:
858+
:ref:`sphx_glr_auto_examples_classification_plot_classification_probability.py`.
856859
"""
857860

858861
_impl = "c_svc"

0 commit comments

Comments
 (0)