From c144f9e662559b82e35d043cd6b4d0c1350bb37e Mon Sep 17 00:00:00 2001 From: Thiago Nazareth de Oliveira Date: Tue, 13 Apr 2021 20:06:54 -0300 Subject: [PATCH] FIX: Cut off any [no-longer-needed] probabalistic information from MT classifiers --- src/main/java/meka/classifiers/multilabel/Evaluation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/meka/classifiers/multilabel/Evaluation.java b/src/main/java/meka/classifiers/multilabel/Evaluation.java index 88dd306e..14dfbf59 100755 --- a/src/main/java/meka/classifiers/multilabel/Evaluation.java +++ b/src/main/java/meka/classifiers/multilabel/Evaluation.java @@ -576,7 +576,7 @@ public static Result testClassifier(MultiXClassifier h, Instances D_test) throws double y[] = h.distributionForInstance(x); // Cut off any [no-longer-needed] probabalistic information from MT classifiers. if (h instanceof MultiTargetClassifier) - y = Arrays.copyOfRange(y, L, L*2); + y = Arrays.copyOfRange(y, 0, L); // Store the result result.addResult(y,D_test.instance(i));