Use the metrics module instead of `yield np.mean(y_pred == y)`. 

Is it possible to rely on the score method of the boosted estimators?