class_docstr: Binomial exponential family.
  
  INPUTS:
     link      -- a Link instance
     n         -- number of trials for Binomial
class_docstr_tok: ["Binomial","exponential","family",".","INPUTS",":","link","--","a","Link","instance","n","--","number","of","trials","for","Binomial"]
docstr: Binomial deviance residual
  
  INPUTS:
     Y     -- response variable
     mu    -- mean parameter
  
  OUTPUTS: resid
     resid -- deviance residuals
docstr_tok: ["Binomial","deviance","residual","INPUTS",":","Y","--","response","variable","mu","--","mean","parameter","OUTPUTS",":","resid","resid","--","deviance","residuals"]
code: def devresid(self, Y, mu):
      """
      Binomial deviance residual
  
      INPUTS:
         Y     -- response variable
         mu    -- mean parameter
  
      OUTPUTS: resid
         resid -- deviance residuals
  
      """
  
      mu = self.link.clean(mu)
      return np.sign(Y - mu) * np.sqrt(
          -2
          * (
              Y * np.log(mu / self.n)
              + (self.n - Y) * np.log(1 - mu / self.n)
          )
      )
  
imports: import numpy
  from .None import links
  from .None import varfuncs
label_desc: Use image node_id 2 for calling the Binomial obj's underlying member method code with example usage: obj.devresid(Y, mu) and returns: unknown