def capped_binomial_deviance(actual, predicted):
 return np.mean(capped_log10_likelihood(actual, predicted))

def capped_binomial_deviance ( actual , predicted ) : return np . mean ( capped_log10_likelihood ( actual , predicted ) )
computes the capped binomial deviance .