class sklearn.base.ClassifierMixin
[source]
Mixin class for all classifiers in scikit-learn.
score (X, y[, sample_weight]) | Returns the mean accuracy on the given test data and labels. |
__init__($self, /, *args, **kwargs)
Initialize self. See help(type(self)) for accurate signature.
score(X, y, sample_weight=None)
[source]
Returns the mean accuracy on the given test data and labels.
In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted.
Parameters: |
|
---|---|
Returns: |
|
© 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.base.ClassifierMixin.html