class_docstr: Abstract base class for botorch posteriors.
  
  :meta private:
class_docstr_tok: ["Abstract","base","class","for","botorch","posteriors",".",":","meta","private",":"]
docstr: The probability density (or mass) of the distribution.
  
  For multi-variate distributions, this may return the density of
  the marginal distributions.
docstr_tok: ["The","probability","density","(","or","mass",")","of","the","distribution",".","For","multi-variate","distributions",",","this","may","return","the","density","of","the","marginal","distributions","."]
code: def density(self, value: Tensor) -> Tensor:
      r"""The probability density (or mass) of the distribution.
  
      For multi-variate distributions, this may return the density of
      the marginal distributions.
      """
      raise NotImplementedError(
          f"{self.__class__.__name__} does not implement a `density` method."
      )
  
file_path: botorch/botorch/posteriors/posterior.py
imports: from __future__ import annotations
  import warnings
  from abc import ABC, abstractmethod, abstractproperty
  from typing import Optional, Tuple
  import torch
  from torch import Tensor
label_desc: Use image node_id 8 for calling the Posterior obj's underlying member method code with example usage: obj.density(value) without return types