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
b378ccef
Commit
b378ccef
authored
8 years ago
by
bbauvin
Browse files
Options
Downloads
Patches
Plain Diff
debugging
parent
3bf9c9c6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/MonoMutliViewClassifiers/ExecClassif.py
+5
-4
5 additions, 4 deletions
Code/MonoMutliViewClassifiers/ExecClassif.py
Code/MonoMutliViewClassifiers/MonoviewClassifiers/SCM.py
+1
-0
1 addition, 0 deletions
Code/MonoMutliViewClassifiers/MonoviewClassifiers/SCM.py
with
6 additions
and
4 deletions
Code/MonoMutliViewClassifiers/ExecClassif.py
+
5
−
4
View file @
b378ccef
...
@@ -384,6 +384,7 @@ if True:
...
@@ -384,6 +384,7 @@ if True:
if
benchmark
[
"
Multiview
"
][
"
Fusion
"
][
"
Methods
"
][
"
LateFusion
"
]
and
benchmark
[
"
Multiview
"
][
"
Fusion
"
][
"
Classifiers
"
]:
if
benchmark
[
"
Multiview
"
][
"
Fusion
"
][
"
Methods
"
][
"
LateFusion
"
]
and
benchmark
[
"
Multiview
"
][
"
Fusion
"
][
"
Classifiers
"
]:
bestClassifiers
=
[]
bestClassifiers
=
[]
bestClassifiersConfigs
=
[]
bestClassifiersConfigs
=
[]
if
argumentDictionaries
[
"
Monoview
"
]
!=
[]:
for
viewIndex
,
view
in
enumerate
(
views
):
for
viewIndex
,
view
in
enumerate
(
views
):
bestClassifiers
.
append
(
classifiersNames
[
viewIndex
][
np
.
argmax
(
np
.
array
(
accuracies
[
viewIndex
]))])
bestClassifiers
.
append
(
classifiersNames
[
viewIndex
][
np
.
argmax
(
np
.
array
(
accuracies
[
viewIndex
]))])
bestClassifiersConfigs
.
append
(
classifiersConfigs
[
viewIndex
][
np
.
argmax
(
np
.
array
(
accuracies
[
viewIndex
]))])
bestClassifiersConfigs
.
append
(
classifiersConfigs
[
viewIndex
][
np
.
argmax
(
np
.
array
(
accuracies
[
viewIndex
]))])
...
@@ -399,6 +400,7 @@ if True:
...
@@ -399,6 +400,7 @@ if True:
"
classifiersConfigs
"
:
bestClassifiersConfigs
,
"
classifiersConfigs
"
:
bestClassifiersConfigs
,
'
fusionMethodConfig
'
:
fusionMethodConfig
}}
'
fusionMethodConfig
'
:
fusionMethodConfig
}}
argumentDictionaries
[
"
Multiview
"
].
append
(
arguments
)
argumentDictionaries
[
"
Multiview
"
].
append
(
arguments
)
print
bestClassifiersConfigs
except
:
except
:
pass
pass
try
:
try
:
...
@@ -423,7 +425,6 @@ if True:
...
@@ -423,7 +425,6 @@ if True:
else
:
else
:
pass
pass
# resultsMultiview = []
# resultsMultiview = []
print
argumentDictionaries
if
nbCores
>
1
:
if
nbCores
>
1
:
resultsMultiview
=
[]
resultsMultiview
=
[]
nbExperiments
=
len
(
argumentDictionaries
[
"
Multiview
"
])
nbExperiments
=
len
(
argumentDictionaries
[
"
Multiview
"
])
...
...
This diff is collapsed.
Click to expand it.
Code/MonoMutliViewClassifiers/MonoviewClassifiers/SCM.py
+
1
−
0
View file @
b378ccef
...
@@ -122,6 +122,7 @@ def transformData(dataArray):
...
@@ -122,6 +122,7 @@ def transformData(dataArray):
i
=
0
i
=
0
name
=
nameb
name
=
nameb
while
fail
:
while
fail
:
print
name
if
not
os
.
path
.
isfile
(
name
):
if
not
os
.
path
.
isfile
(
name
):
name
=
nameb
+
str
(
i
)
name
=
nameb
+
str
(
i
)
dsetFile
=
h5py
.
File
(
name
,
"
w
"
)
dsetFile
=
h5py
.
File
(
name
,
"
w
"
)
...
...
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