parameters: (self, probs1=None)
return_statement: return -(probs0 * self.log(probs0)) - (probs1 * self.log(probs1))
docstring: r"""
          .. math::
              H(B) = -probs0 * \log(probs0) - probs1 * \log(probs1)
docstring_summary: r"""
          .. math::
              H(B) = -probs0 * \log(probs0) - probs1 * \log(probs1)
docstring_tokens: r .. math :: H ( B ) = - probs0 * \ log ( probs0 ) - probs1 * \ log ( probs1 )
function: def _entropy(self, probs1=None):
          r"""
          .. math::
              H(B) = -probs0 * \log(probs0) - probs1 * \log(probs1)
          """
          probs1 = self._check_param_type(probs1)
          probs0 = 1.0 - probs1
          return -(probs0 * self.log(probs0)) - (probs1 * self.log(probs1))
function_tokens: def _entropy ( self , probs1 = None ) : probs1 = self . _check_param_type ( probs1 ) probs0 = 1.0 - probs1 return - ( probs0 * self . log ( probs0 ) ) - ( probs1 * self . log ( probs1 ) )