class ClassificationEvaluationUtil implements Serializable {

    static Type judgeEvaluationType(Params params) {
        Type type;
        if (params.contains(EvalMultiClassParams.PREDICTION_DETAIL_COL)) {
            type = Type.PRED_DETAIL;
        } else if (params.contains(EvalMultiClassParams.PREDICTION_COL)) {
            type = Type.PRED_RESULT;
        } else {
            throw new IllegalArgumentException("Error Input, must give either predictionCol or predictionDetailCol!");
        }
        return type;
    }

}