function to rate a classifier (the classifier is both slow and  inaccurate :))