Skip to content
Snippets Groups Projects
Commit d98a164a authored by bbauvin's avatar bbauvin
Browse files

Graalbrain compatibility

parent d3beffb1
Branches
Tags
No related merge requests found
......@@ -100,10 +100,10 @@ def ExecMonoview_multicore(directory, name, labelsNames, classificationIndices,
path, randomState, labels, hyperParamSearch="randomizedSearch",
metrics=[["accuracy_score", None]], nIter=30, **args):
DATASET = h5py.File(path + name + str(datasetFileIndex) + ".hdf5", "r")
kwargs = args["args"]
views = [DATASET.get("View" + str(viewIndex)).attrs["name"] for viewIndex in
range(DATASET.get("Metadata").attrs["nbView"])]
neededViewIndex = views.index(kwargs["feat"])
# kwargs = args["args"]
# views = [DATASET.get("View" + str(viewIndex)).attrs["name"] for viewIndex in
# range(DATASET.get("Metadata").attrs["nbView"])]
neededViewIndex = args["viewIndex"]
X = DATASET.get("View" + str(neededViewIndex))
Y = labels
return ExecMonoview(directory, X, Y, name, labelsNames, classificationIndices, KFolds, 1, databaseType, path,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment