From 95defb10d157b1dd2665878e726792c884d4f12c Mon Sep 17 00:00:00 2001 From: Baptiste Bauvin <baptiste.bauvin@lis-lab.fr> Date: Sat, 18 Aug 2018 10:25:45 -0400 Subject: [PATCH] Added number of stumps by attr in interpretstring --- .../MonoMultiViewClassifiers/Monoview/Additions/BoostUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multiview_platform/MonoMultiViewClassifiers/Monoview/Additions/BoostUtils.py b/multiview_platform/MonoMultiViewClassifiers/Monoview/Additions/BoostUtils.py index 04177725..a1d207e3 100644 --- a/multiview_platform/MonoMultiViewClassifiers/Monoview/Additions/BoostUtils.py +++ b/multiview_platform/MonoMultiViewClassifiers/Monoview/Additions/BoostUtils.py @@ -698,7 +698,7 @@ def getInterpretBase(classifier, directory, classifier_name, weights, interpretString = "\t "+classifier_name+" permformed classification with weights : \n" 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( + interpretString += "\n \t It generated {} columns by attributes and used {} iterations to converge, and selected {} couple(s) of opposed voters".format(classifier.n_stumps, len(weights_sort), classifier.nb_opposed_voters) if len(weights_sort) == classifier.n_max_iterations or len(weights) == classifier.n_total_hypotheses_: if len(weights) == classifier.n_max_iterations: -- GitLab