why do people do this:
def compute_score(clf, X, y,scoring='accuracy'):
xval = cross_val_score(clf, X, y, cv = 5,scoring=scoring)
return np.mean(xval)
when they could have done: np.mean(cross_val_score(clf, X, y, cv = 5,scoring='accuracy'))