class_docstr: Pairwise likelihood base class for pairwise preference GP (e.g., PairwiseGP).
  
  :meta private:
docstr: return the log of p
docstr_tok: ["return","the","log","of","p"]
code: def log_p(self, utility: Tensor, D: Tensor) -> Tensor:
      """return the log of p"""
      return torch.log(self.p(utility=utility, D=D))
  
imports: from __future__ import annotations
  import math
  from abc import ABC, abstractmethod
  from typing import Any, Tuple
  import torch
  from botorch.utils.probability.utils import log_ndtr, log_phi, standard_normal_log_hazard
  from gpytorch.likelihoods import Likelihood
  from torch import Tensor
  from torch.distributions import Bernoulli
label_desc: Use image node_id 4 for calling the PairwiseLikelihood obj's underlying member method code with example usage: obj.log_p(utility, D) and returns: torch