sklearn.base.ClassifierMixin¶
- class sklearn.base.ClassifierMixin¶
Mixin class for all classifiers in scikit-learn.
Methods
score(X, y) Returns the mean accuracy on the given test data and labels. - __init__()¶
x.__init__(...) initializes x; see help(type(x)) for signature
- score(X, y)¶
Returns the mean accuracy on the given test data and labels.
Parameters : X : array-like, shape = (n_samples, n_features)
Test samples.
y : array-like, shape = (n_samples,)
True labels for X.
Returns : score : float
Mean accuracy of self.predict(X) wrt. y.