From 646857aa6c1eb0b0436cf5e1fdb43db012d69ab9 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Sun, 10 Oct 2021 14:01:43 +0330 Subject: [PATCH] fix : new warning and error messages added #347 --- pycm/pycm_param.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pycm/pycm_param.py b/pycm/pycm_param.py index 5f46c72a..c348bd05 100644 --- a/pycm/pycm_param.py +++ b/pycm/pycm_param.py @@ -69,8 +69,16 @@ COMPARE_CLASS_WEIGHT_ERROR = "The class_weight type must be dictionary and also must be specified for all of the classes." +COMPARE_CLASS_BENCHMARK_WEIGHT_ERROR = "The class_benchmark_weight type must be dictionary and also must be specified for all of the class benchmarks." + +COMPARE_OVERALL_BENCHMARK_WEIGHT_ERROR = "The overall_benchmark_weight type must be dictionary and also must be specified for all of the overall benchmarks." + COMPARE_CLASS_WEIGHT_WARNING = "The class_weight format is wrong, the result is for unweighted mode." +COMPARE_CLASS_BENCHMARK_WEIGHT_WARNING = "The class_benchmark_weight format is wrong, the result is for unweighted mode." + +COMPARE_OVERALL_BENCHMARK_WEIGHT_WARNING = "The overall_benchmark_weight format is wrong, the result is for unweighted mode." + COMBINE_TYPE_ERROR = "The input type is supposed to be pycm.ConfusionMatrix object but it's not!" COMPARE_RESULT_WARNING = "Confusion matrices are too close and the best one can not be recognized."