generalize ClassifierPerformance