Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Supervised MultiModal Integration Tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Baptiste Bauvin
Supervised MultiModal Integration Tool
Commits
db24dca9
"README.rst" did not exist on "88040c5d4859f96b0e10b34a19af86dd637695f8"
Commit
db24dca9
authored
8 years ago
by
bbauvin
Browse files
Options
Downloads
Patches
Plain Diff
Trying to fix segmentation fault
parent
7f7fc289
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/MonoMutliViewClassifiers/utils/Dataset.py
+1
-1
1 addition, 1 deletion
Code/MonoMutliViewClassifiers/utils/Dataset.py
with
1 addition
and
1 deletion
Code/MonoMutliViewClassifiers/utils/Dataset.py
+
1
−
1
View file @
db24dca9
...
@@ -38,7 +38,7 @@ def extractSubset(matrix, usedIndices):
...
@@ -38,7 +38,7 @@ def extractSubset(matrix, usedIndices):
oldindptr
=
matrix
.
indptr
oldindptr
=
matrix
.
indptr
for
exampleIndexIndex
,
exampleIndex
in
enumerate
(
usedIndices
):
for
exampleIndexIndex
,
exampleIndex
in
enumerate
(
usedIndices
):
newIndptr
[
exampleIndexIndex
+
1
]
=
newIndptr
[
exampleIndexIndex
]
+
(
oldindptr
[
exampleIndex
+
1
]
-
oldindptr
[
exampleIndex
])
newIndptr
[
exampleIndexIndex
+
1
]
=
newIndptr
[
exampleIndexIndex
]
+
(
oldindptr
[
exampleIndex
+
1
]
-
oldindptr
[
exampleIndex
])
print
newIndptr
[
-
1
]
print
newIndptr
newData
=
np
.
ones
(
newIndptr
[
-
1
],
dtype
=
bool
)
newData
=
np
.
ones
(
newIndptr
[
-
1
],
dtype
=
bool
)
newIndices
=
np
.
zeros
(
newIndptr
[
-
1
],
dtype
=
np
.
int32
)
newIndices
=
np
.
zeros
(
newIndptr
[
-
1
],
dtype
=
np
.
int32
)
oldIndices
=
matrix
.
indices
oldIndices
=
matrix
.
indices
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment