class_docstr: Detector class.
  
  The detector is is a `nn.Module` subclass that, after fitting, performs a drift test when called and returns a score or p-value.
  
      Constructor Args:
              return_p_value (bool): If set, forward returns a p-value (estimate) instead of the raw test score.
docstr: stub to be overridden by subclasses
code: def predict_shift_from_features(
      self,
      base_outputs: torch.Tensor,
      outputs: torch.Tensor,
      compute_score: bool,
      compute_p_value: bool,
      individual_samples: bool = False,
  ) -> torch.Tensor:
      """stub to be overridden by subclasses"""
      raise NotImplementedError(
          "Override predict_shift_from_features in detectors"
      )
  
file_path: TorchDrift/torchdrift/detectors/detector.py
imports: import torch
  import torchdrift.utils
label_desc: Use image node_id 3 for calling the Detector obj's underlying member method code with example usage: obj.predict_shift_from_features(base_outputs, outputs, compute_score, compute_p_value, individual_samples) without return types