From db24dca9309290d272e11dc0923638b9c60a760e Mon Sep 17 00:00:00 2001 From: bbauvin <baptiste.bauvin@centrale-marseille.fr> Date: Thu, 15 Sep 2016 11:43:41 -0400 Subject: [PATCH] Trying to fix segmentation fault --- Code/MonoMutliViewClassifiers/utils/Dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/MonoMutliViewClassifiers/utils/Dataset.py b/Code/MonoMutliViewClassifiers/utils/Dataset.py index bf3fa517..81750796 100644 --- a/Code/MonoMutliViewClassifiers/utils/Dataset.py +++ b/Code/MonoMutliViewClassifiers/utils/Dataset.py @@ -38,7 +38,7 @@ def extractSubset(matrix, usedIndices): oldindptr = matrix.indptr for exampleIndexIndex, exampleIndex in enumerate(usedIndices): newIndptr[exampleIndexIndex+1] = newIndptr[exampleIndexIndex]+(oldindptr[exampleIndex+1]-oldindptr[exampleIndex]) - print newIndptr[-1] + print newIndptr newData = np.ones(newIndptr[-1], dtype=bool) newIndices = np.zeros(newIndptr[-1], dtype=np.int32) oldIndices = matrix.indices -- GitLab