From 7f7fc2893f7a2f12320ae973bedee8c0c4df6137 Mon Sep 17 00:00:00 2001 From: bbauvin <baptiste.bauvin@centrale-marseille.fr> Date: Thu, 15 Sep 2016 11:42:56 -0400 Subject: [PATCH] Trying to fix segmentation fault --- Code/MonoMutliViewClassifiers/utils/Dataset.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Code/MonoMutliViewClassifiers/utils/Dataset.py b/Code/MonoMutliViewClassifiers/utils/Dataset.py index fcc5474f..bf3fa517 100644 --- a/Code/MonoMutliViewClassifiers/utils/Dataset.py +++ b/Code/MonoMutliViewClassifiers/utils/Dataset.py @@ -38,6 +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] newData = np.ones(newIndptr[-1], dtype=bool) newIndices = np.zeros(newIndptr[-1], dtype=np.int32) oldIndices = matrix.indices -- GitLab