class_docstr: Implementation of Binary likelihood, which is used for binary classification
  problems.
  
  Binary likelihood uses :class:`~pyro.distributions.Bernoulli` distribution,
  so the output of ``response_function`` should be in range :math:`(0,1)`. By
  default, we use `sigmoid` function.
  
  :param callable response_function: A mapping to correct domain for Binary
      likelihood.
code: def __init__(self, response_function=None):
      super().__init__()
      self.response_function = (
          torch.sigmoid
          if response_function is None
          else response_function
      )
  
file_path: pyro/pyro/contrib/gp/likelihoods/binary.py
imports: import torch
  import pyro
  import pyro.distributions
  from pyro.contrib.gp.likelihoods.likelihood import Likelihood
label_desc: Use image node_id 1 to create a new Binary object from inherited base classes: Likelihood with example: obj = Binary(response_function)