Skip to content

Commit 687eeca

Browse files
thechargedneutronjnothman
authored andcommitted
DOC Corrects links to doc of ClassifierChain and RegressorChain (scikit-learn#10288)
1 parent e9299ad commit 687eeca

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

doc/modules/multiclass.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ Below is an example of multioutput classification:
397397
[0, 0, 2],
398398
[2, 0, 0]])
399399

400-
.. classifierchain:
400+
.. _classifierchain:
401401

402402
Classifier Chain
403403
================
@@ -428,7 +428,7 @@ averaged together.
428428
Jesse Read, Bernhard Pfahringer, Geoff Holmes, Eibe Frank,
429429
"Classifier Chains for Multi-label Classification", 2009.
430430

431-
.. regressorchain:
431+
.. _regressorchain:
432432

433433
Regressor Chain
434434
================

sklearn/multioutput.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,12 @@ class labels for each estimator in the chain.
536536
order_ : list
537537
The order of labels in the classifier chain.
538538
539+
See also
540+
--------
541+
RegressorChain: Equivalent for regression
542+
MultioutputClassifier: Classifies each output independently rather than
543+
chaining.
544+
539545
References
540546
----------
541547
Jesse Read, Bernhard Pfahringer, Geoff Holmes, Eibe Frank, "Classifier
@@ -681,6 +687,12 @@ class RegressorChain(_BaseChain, RegressorMixin, MetaEstimatorMixin):
681687
order_ : list
682688
The order of labels in the classifier chain.
683689
690+
See also
691+
--------
692+
ClassifierChain: Equivalent for classification
693+
MultioutputRegressor: Learns each output independently rather than
694+
chaining.
695+
684696
"""
685697
def fit(self, X, Y):
686698
"""Fit the model to data matrix X and targets Y.

0 commit comments

Comments
 (0)