title: How is scikit-learn cross_val_predict accuracy score calculated?
body: <p>Does the <code>cross_val_predict</code> (see <a href="http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.cross_val_predict.html" rel="noreferrer">doc</a>,  v0.18) with <em>k</em>-fold method as shown in the code below calculate accuracy for each fold and average them finally or not? </p>
  
  <pre><code>cv = KFold(len(labels), n_folds=20)
  clf = SVC()
  ypred = cross_val_predict(clf, td, labels, cv=cv)
  accuracy = accuracy_score(labels, ypred)
  print accuracy
  </code></pre>