From bef9225fdfd0f93d6f934cf63734f4b43f6319a1 Mon Sep 17 00:00:00 2001
From: Baptiste Bauvin <baptiste.bauvin.1@ulaval.ca>
Date: Mon, 18 Jun 2018 14:39:59 -0400
Subject: [PATCH] Fixed monocore bug

---
 .../MonoMultiViewClassifiers/ExecClassif.py           | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/multiview_platform/MonoMultiViewClassifiers/ExecClassif.py b/multiview_platform/MonoMultiViewClassifiers/ExecClassif.py
index 97eebf0f..ebebb763 100644
--- a/multiview_platform/MonoMultiViewClassifiers/ExecClassif.py
+++ b/multiview_platform/MonoMultiViewClassifiers/ExecClassif.py
@@ -329,16 +329,10 @@ def execOneBenchmarkMonoCore(DATASET=None, LABELS_DICTIONARY=None, directory=Non
                              initMultiviewArguments=initMultiviewArguments):
 
     resultsMonoview, labelsNames = benchmarkInit(directory, classificationIndices, labels, LABELS_DICTIONARY, kFolds)
-
+    print argumentDictionaries["Monoview"][0]
     logging.debug("Start:\t Monoview benchmark")
     for arguments in argumentDictionaries["Monoview"]:
-        kwargs = arguments["args"]
-        #views = [DATASET.get("View" + str(viewIndex)).attrs["name"]
-        #         if type(DATASET.get("View" + str(viewIndex)).attrs["name"])!=bytes
-        #         else DATASET.get("View" + str(viewIndex)).attrs["name"].decode("utf-8")
-        #         for viewIndex in range(DATASET.get("Metadata").attrs["nbView"])]
-        #neededViewIndex = views.index(kwargs["feat"])
-        X = DATASET.get("View"+str(kwargs["viewIndex"]))
+        X = DATASET.get("View"+str(arguments["viewIndex"]))
         Y = labels
         resultsMonoview += [ExecMonoview(directory, X, Y, args.name, labelsNames, classificationIndices, kFolds,
                                                    1, args.type, args.pathF, randomState,
@@ -497,6 +491,7 @@ def execClassif(arguments):
     dataBaseTime = time.time() - start
 
     argumentDictionaries = initMonoviewExps(benchmark, viewsDictionary, NB_CLASS, initKWARGS)
+    print(argumentDictionaries)
     directories = execution.genDirecortiesNames(directory, statsIter)
     benchmarkArgumentDictionaries = execution.genArgumentDictionaries(LABELS_DICTIONARY, directories, multiclassLabels,
                                                                       labelsCombinations, indicesMulticlass,
-- 
GitLab