docstr: Compute the distance matrix matrix between `x` and `y`.
docstr_tok: ["Compute","the","distance","matrix","matrix","between","`","x","`","and","`","y","`","."]
code: def _compute_K(self, x, y):
      """Compute the distance matrix matrix between `x` and `y`."""
      return (
          torch.exp(-self.kernel(x, y))
          if self.kernel is not None
          else torch.cdist(x, y)
      )
  
file_path: alibi-detect/alibi_detect/od/pytorch/lof.py
imports: from typing import Optional, Union, List, Tuple
  import numpy
  import torch
  from alibi_detect.od.pytorch.ensemble import Ensembler
  from alibi_detect.od.pytorch.base import TorchOutlierDetector
  from alibi_detect.utils._types import TorchDeviceType
label_desc: Use image node_id 4 for calling the LOFTorch obj's underlying member method code with example usage: obj._compute_K(x, y) and returns: unknown