measure the classification rate