From 70ab9dcd605a26e99917102ef2b24fa91fa3f6fd Mon Sep 17 00:00:00 2001 From: Baptiste Bauvin <baptiste.bauvin@lis-lab.fr> Date: Thu, 2 Aug 2018 11:05:17 -0400 Subject: [PATCH] Sort in right order for boosting --- .../MonoMultiViewClassifiers/Monoview/BoostUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multiview_platform/MonoMultiViewClassifiers/Monoview/BoostUtils.py b/multiview_platform/MonoMultiViewClassifiers/Monoview/BoostUtils.py index af8396cd..2faadb03 100644 --- a/multiview_platform/MonoMultiViewClassifiers/Monoview/BoostUtils.py +++ b/multiview_platform/MonoMultiViewClassifiers/Monoview/BoostUtils.py @@ -667,7 +667,7 @@ class BaseBoost(object): def getInterpretBase(classifier, directory, classifier_name, weights, break_cause=" the dual constrail was not violated"): interpretString = "\t "+classifier_name+" permformed classification with weights : \n" - weights_sort = np.argsort(weights) + weights_sort = np.argsort(-weights) interpretString += np.array2string(weights[weights_sort], precision=4, separator=',', suppress_small=True) interpretString += "\n \t It used {} iterations to converge, and selected {} couple(s) of opposed voters".format( len(weights_sort), classifier.nb_opposed_voters) -- GitLab