luispedro / milk

MILK: Machine Learning Toolkit
http://www.luispedro.org/software/milk
MIT License
605 stars 146 forks source link

Return accuracy as fraction matched #4

Closed eyevz closed 13 years ago

eyevz commented 13 years ago

Schematically, sum(actual == predicted)/size(actual) gives the fracton accurately predicted, which is what this function should return, as inferred from the docs. Before this patch, it was computing the fraction missed, ie sum(actual != predicted)/size(actual)