From f867f02f5682ceb36b7acea390c61770332c2cf9 Mon Sep 17 00:00:00 2001 From: bbauvin <baptiste.bauvin@centrale-marseille.fr> Date: Thu, 15 Sep 2016 11:45:34 -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 81750796..f737b8fc 100644 --- a/Code/MonoMutliViewClassifiers/utils/Dataset.py +++ b/Code/MonoMutliViewClassifiers/utils/Dataset.py @@ -36,6 +36,7 @@ def extractSubset(matrix, usedIndices): if sparse.issparse(matrix): newIndptr = np.zeros(len(usedIndices)+1, dtype=np.int16) oldindptr = matrix.indptr + print oldindptr for exampleIndexIndex, exampleIndex in enumerate(usedIndices): newIndptr[exampleIndexIndex+1] = newIndptr[exampleIndexIndex]+(oldindptr[exampleIndex+1]-oldindptr[exampleIndex]) print newIndptr -- GitLab