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

Trying to fix segmentation fault

parent cf122cc4
Branches
Tags
No related merge requests found
...@@ -71,8 +71,10 @@ def ExecMonoview(X, Y, name, learningRate, nbFolds, nbCores, databaseType, path, ...@@ -71,8 +71,10 @@ def ExecMonoview(X, Y, name, learningRate, nbFolds, nbCores, databaseType, path,
logging.debug("Start:\t Determine Train/Test split") logging.debug("Start:\t Determine Train/Test split")
testIndices = ClassifMonoView.splitDataset(Y, nbClass, learningRate, datasetLength) testIndices = ClassifMonoView.splitDataset(Y, nbClass, learningRate, datasetLength)
trainIndices = [i for i in range(datasetLength) if i not in testIndices] trainIndices = [i for i in range(datasetLength) if i not in testIndices]
X_train = X[:,trainIndices]#ClassifMonoView.extractSet(X, trainIndices) print X.sum(axis=1)
X_test = X[:,testIndices]#ClassifMonoView.extractSet(X,testIndices) X_train = X[trainIndices]#ClassifMonoView.extractSet(X, trainIndices)
X_test = X[testIndices]#ClassifMonoView.extractSet(X,testIndices)
y_train = Y[trainIndices] y_train = Y[trainIndices]
y_test = Y[testIndices] y_test = Y[testIndices]
# X_train, X_test, y_train, y_test = ClassifMonoView.calcTrainTest(X, Y, learningRate) # X_train, X_test, y_train, y_test = ClassifMonoView.calcTrainTest(X, Y, learningRate)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment