Multiclass threshold-based classification and model evaluation