class_docstr: Implementation of the Pointing Game by Zhang et al., 2018.
  
  The Pointing Game implements a check whether the point of maximal attribution is on target,
  denoted by a binary mask. High scores are desired as it means, that the maximal attributed pixel belongs to
  an object of the specified class.
  
  References:
      1) Jianming Zhang et al.:
         "Top-Down Neural Attention by Excitation Backprop." International Journal of Computer Vision
         (2018) 126:1084-1102.
  
  Attributes:
      -  _name: The name of the metric.
      - _data_applicability: The data types that the metric implementation currently supports.
      - _models: The model types that this metric can work with.
      - score_direction: How to interpret the scores, whether higher/ lower values are considered better.
class_docstr_tok: ["Implementation","of","the","Pointing","Game","by","Zhang","et","al.",",","2018",".","The","Pointing","Game","implements","a","check","whether","the","point","of","maximal","attribution","is","on","target",",","denoted","by","a","binary","mask",".","High","scores","are","desired","as","it","means",",","that","the","maximal","attributed","pixel","belongs","to","an","object","of","the","specified","class",".","References",":","1",")","Jianming","Zhang","et","al",".",":","``","Top-Down","Neural","Attention","by","Excitation","Backprop",".","''","International","Journal","of","Computer","Vision","(","2018",")","126:1084-1102",".","Attributes",":","-","_name",":","The","name","of","the","metric",".","-","_data_applicability",":","The","data","types","that","the","metric","implementation","currently","supports",".","-","_models",":","The","model","types","that","this","metric","can","work","with",".","-","score_direction",":","How","to","interpret","the","scores",",","whether","higher\/","lower","values","are","considered","better","."]
docstr: Implementation of custom_preprocess_batch.
  
  Parameters
  ----------
  x_batch: np.ndarray
      A np.ndarray which contains the input data that are explained.
  s_batch: np.ndarray, optional
      A np.ndarray which contains segmentation masks that matches the input.
  
  Returns
  -------
  None
docstr_tok: ["Implementation","of","custom_preprocess_batch",".","Parameters","--","--","--","--","--","x_batch",":","np.ndarray","A","np.ndarray","which","contains","the","input","data","that","are","explained",".","s_batch",":","np.ndarray",",","optional","A","np.ndarray","which","contains","segmentation","masks","that","matches","the","input",".","Returns","--","--","--","-","None"]
code: def custom_preprocess(
      self,
      x_batch: np.ndarray,
      s_batch: np.ndarray,
      **kwargs,
  ) -> None:
      """
      Implementation of custom_preprocess_batch.
  
      Parameters
      ----------
      x_batch: np.ndarray
          A np.ndarray which contains the input data that are explained.
      s_batch: np.ndarray, optional
          A np.ndarray which contains segmentation masks that matches the input.
  
      Returns
      -------
      None
      """
  
      # Asserts.
      asserts.assert_segmentations(x_batch=x_batch, s_batch=s_batch)
  
file_path: Quantus/quantus/metrics/localisation/pointing_game.py
imports: import sys
  from typing import Any, Callable, Dict, List, Optional
  import numpy
  from quantus.helpers import asserts, warn
  from quantus.helpers.enums import DataType, EvaluationCategory, ModelType, ScoreDirection
  from quantus.metrics.base import Metric
label_desc: Use image node_id 4 for calling the PointingGame obj's underlying member method code with example usage: obj.custom_preprocess(x_batch, s_batch) without return types