scikit-learn/scikit-learn — pull request #1750 by arjoly (2013-03-07 10:24:48+00:00)
Title: [MRG] Refactor accuracy zero + Fix bugs with 1d array

This pull request intends to reduce the amount of redundant code between `accuracy_score` and `zero_one_score` (see issue #1748). In order to achieve this, a normalize option has been added to `accuracy_score`.

Furthermore, mix representation of 1d vector are properly handle by all the metrics that compare `y_true` to `y_pred`.