class_docstr: Mixin class for classifier estimators in cuML
docstr: Scoring function for classifier estimators based on mean accuracy.
docstr_tok: ["Scoring","function","for","classifier","estimators","based","on","mean","accuracy","."]
code: def score(self, X, y, **kwargs):
      """
      Scoring function for classifier estimators based on mean accuracy.
  
      """
      from cuml.metrics.accuracy import accuracy_score
  
      if hasattr(self, "handle"):
          handle = self.handle
      else:
          handle = None
  
      preds = self.predict(X, **kwargs)
      return accuracy_score(y, preds, handle=handle)
  
imports: import inspect
  from copy import deepcopy
  from cuml.common.doc_utils import generate_docstring
  from cuml.internals.api_decorators import api_base_return_any_skipall
  from cuml.internals.base_helpers import _tags_class_and_instance
  from cuml.internals.api_decorators import enable_device_interop
label_desc: Use image node_id 1 for calling the ClassifierMixin obj's underlying member method code with example usage: obj.score(X, y) and returns: accuracy_score