docstr: Compute the out-of-fold drift metric such as the accuracy from a classifier
  trained to distinguish the reference data from the data to be tested.
  
  Parameters
  ----------
  x
      Batch of instances.
  
  Returns
  -------
  p-value, a notion of distance between the trained classifier's out-of-fold performance         and that which we'd expect under the null assumption of no drift,         and the out-of-fold classifier model prediction probabilities on the reference and test data         as well as the associated reference and test instances of the out-of-fold predictions.
docstr_tok: ["Compute","the","out-of-fold","drift","metric","such","as","the","accuracy","from","a","classifier","trained","to","distinguish","the","reference","data","from","the","data","to","be","tested",".","Parameters","--","--","--","--","--","x","Batch","of","instances",".","Returns","--","--","--","-","p-value",",","a","notion","of","distance","between","the","trained","classifier","'s","out-of-fold","performance","and","that","which","we","'d","expect","under","the","null","assumption","of","no","drift",",","and","the","out-of-fold","classifier","model","prediction","probabilities","on","the","reference","and","test","data","as","well","as","the","associated","reference","and","test","instances","of","the","out-of-fold","predictions","."]
code: def score(
      self, x: Union[np.ndarray, list]
  ) -> Tuple[
      float,
      float,
      np.ndarray,
      np.ndarray,
      Union[np.ndarray, list],
      Union[np.ndarray, list],
  ]:
      """
          Compute the out-of-fold drift metric such as the accuracy from a classifier
          trained to distinguish the reference data from the data to be tested.
  
          Parameters
          ----------
          x
              Batch of instances.
  
          Returns
          -------
          p-value, a notion of distance between the trained classifier's out-of-fold performance \
          and that which we'd expect under the null assumption of no drift, \
          and the out-of-fold classifier model prediction probabilities on the reference and test data \
          as well as the associated reference and test instances of the out-of-fold predictions.
          """
      if self.use_oob and isinstance(
          self.model, RandomForestClassifier
      ):
          return self._score_rf(x)
  
      return self._score(x)
  
file_path: alibi-detect/alibi_detect/cd/sklearn/classifier.py
imports: import logging
  import numpy
  from functools import partial
  from typing import Callable, Dict, Optional, Tuple, Union
  from sklearn.base import clone, ClassifierMixin
  from sklearn.calibration import CalibratedClassifierCV
  from sklearn.exceptions import NotFittedError
  from sklearn.ensemble import RandomForestClassifier
  from alibi_detect.cd.base import BaseClassifierDrift
  from alibi_detect.utils.warnings import deprecated_alias
  from alibi_detect.utils.frameworks import Framework
label_desc: Use image node_id 4 for calling the ClassifierDriftSklearn obj's underlying member method code with example usage: obj.score(x) and returns: self, self