Skip to content

Commit 06632c0

Browse files
catajarathomasjpfan
authored andcommitted
DOC add missing attributes to OneVsRestClassifier (scikit-learn#14783)
1 parent b99f454 commit 06632c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sklearn/multiclass.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,17 @@ class OneVsRestClassifier(MultiOutputMixin, ClassifierMixin,
170170
171171
classes_ : array, shape = [`n_classes`]
172172
Class labels.
173+
174+
n_classes_ : int
175+
Number of classes.
176+
173177
label_binarizer_ : LabelBinarizer object
174178
Object used to transform multiclass labels to binary labels and
175179
vice-versa.
180+
176181
multilabel_ : boolean
177182
Whether a OneVsRestClassifier is a multilabel classifier.
183+
178184
"""
179185
def __init__(self, estimator, n_jobs=None):
180186
self.estimator = estimator

0 commit comments

Comments
 (0)