accuracy function

Average classification accuracy