class_docstr: Base class for quadruplets learners.
class_docstr_tok: ["Base","class","for","quadruplets","learners","."]
docstr: Predicts the ordering between sample distances in input quadruplets.
  
  For each quadruplet, returns 1 if the quadruplet is in the right order (
  first pair is more similar than second pair), and -1 if not.
  
  Parameters
  ----------
  quadruplets : array-like, shape=(n_quadruplets, 4, n_features) or                   (n_quadruplets, 4)
    3D Array of quadruplets to predict, with each row corresponding to four
    points, or 2D array of indices of quadruplets if the metric learner
    uses a preprocessor.
  
  Returns
  -------
  prediction : `numpy.ndarray` of floats, shape=(n_constraints,)
    Predictions of the ordering of pairs, for each quadruplet.
docstr_tok: ["Predicts","the","ordering","between","sample","distances","in","input","quadruplets",".","For","each","quadruplet",",","returns","1","if","the","quadruplet","is","in","the","right","order","(","first","pair","is","more","similar","than","second","pair",")",",","and","-1","if","not",".","Parameters","--","--","--","--","--","quadruplets",":","array-like",",","shape=","(","n_quadruplets",",","4",",","n_features",")","or","(","n_quadruplets",",","4",")","3D","Array","of","quadruplets","to","predict",",","with","each","row","corresponding","to","four","points",",","or","2D","array","of","indices","of","quadruplets","if","the","metric","learner","uses","a","preprocessor",".","Returns","--","--","--","-","prediction",":","`","numpy.ndarray","`","of","floats",",","shape=","(","n_constraints",",",")","Predictions","of","the","ordering","of","pairs",",","for","each","quadruplet","."]
code: def predict(self, quadruplets):
      """Predicts the ordering between sample distances in input quadruplets.
  
      For each quadruplet, returns 1 if the quadruplet is in the right order (
      first pair is more similar than second pair), and -1 if not.
  
      Parameters
      ----------
      quadruplets : array-like, shape=(n_quadruplets, 4, n_features) or \
                    (n_quadruplets, 4)
        3D Array of quadruplets to predict, with each row corresponding to four
        points, or 2D array of indices of quadruplets if the metric learner
        uses a preprocessor.
  
      Returns
      -------
      prediction : `numpy.ndarray` of floats, shape=(n_constraints,)
        Predictions of the ordering of pairs, for each quadruplet.
      """
      return np.sign(self.decision_function(quadruplets))
  
imports: from sklearn.base import BaseEstimator, ClassifierMixin
  from sklearn.utils.extmath import stable_cumsum
  from sklearn.utils.validation import _is_arraylike, check_is_fitted
  from sklearn.metrics import roc_auc_score, roc_curve, precision_recall_curve
  import numpy
  from abc import ABCMeta, abstractmethod
  from ._util import ArrayIndexer, check_input, validate_vector
  import warnings
label_desc: Use image node_id 1 for calling the _QuadrupletsClassifierMixin obj's underlying member method code with example usage: obj.predict(quadruplets) and returns: np