class_docstr: Base class for domain classifiers used in :py:class:`~alibi_detect.cd.ContextAwareDrift`.The `SVCDomainClf` is
  currently hardcoded into the detector. Therefore, for now, these classes (and the domain_clf submodule) are
  kept private. This is subject to change in the future.
  
  The classifiers should be fit on conditioning variables `x` and their domain `y` (`0` for ref, `1`
  test). They should predict propensity scores (probability of being test instances) as output.
  Classifiers should possess a calibrate method to calibrate the propensity scores.
class_docstr_tok: ["Base","class","for","domain","classifiers","used","in",":","py",":","class",":","`","~alibi_detect.cd.ContextAwareDrift","`",".The","`","SVCDomainClf","`","is","currently","hardcoded","into","the","detector",".","Therefore",",","for","now",",","these","classes","(","and","the","domain_clf","submodule",")","are","kept","private",".","This","is","subject","to","change","in","the","future",".","The","classifiers","should","be","fit","on","conditioning","variables","`","x","`","and","their","domain","`","y","`","(","`","0","`","for","ref",",","`","1","`","test",")",".","They","should","predict","propensity","scores","(","probability","of","being","test","instances",")","as","output",".","Classifiers","should","possess","a","calibrate","method","to","calibrate","the","propensity","scores","."]
code: def predict(self, x: np.ndarray) -> np.ndarray:
      raise NotImplementedError()
  
file_path: alibi-detect/alibi_detect/cd/_domain_clf.py
imports: from abc import ABC, abstractmethod
  from typing import Callable
  import numpy
  from sklearn.svm import SVC
  from sklearn.calibration import CalibratedClassifierCV
label_desc: Use image node_id 4 for calling the _DomainClf obj's underlying member method code with example usage: obj.predict(x) without return types