docstr: Fit transform on scores.
  
  Parameters
  ----------
  val_scores
      score outputs of ensemble of detectors applied to reference data.
docstr_tok: ["Fit","transform","on","scores",".","Parameters","--","--","--","--","--","val_scores","score","outputs","of","ensemble","of","detectors","applied","to","reference","data","."]
code: def fit(self, val_scores: torch.Tensor) -> Self:
      """Fit transform on scores.
  
      Parameters
      ----------
      val_scores
          score outputs of ensemble of detectors applied to reference data.
      """
      self.val_scores = val_scores
      return self._set_fitted()
  
imports: from abc import ABC, abstractmethod
  from typing import Optional
  from typing_extensions import Self
  import torch
  import numpy
  from torch.nn import Module
  from alibi_detect.exceptions import NotFittedError
label_desc: Use image node_id 2 for calling the PValNormalizer obj's underlying member method code with example usage: obj.fit(val_scores) and returns: self