def logistic_log_gradient_i(x_i, y_i, beta):
 return [logistic_log_partial_ij(x_i, y_i, beta, j) for (j, _) in enumerate(beta)]

def logistic_log_gradient_i ( x_i , y_i , beta ) : return [ logistic_log_partial_ij ( x_i , y_i , beta , j ) for ( j , _ ) in enumerate ( beta ) ]
the gradient of the log likelihood corresponding to the i-th data point .