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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Baptiste Bauvin
Supervised MultiModal Integration Tool
Commits
d2c81346
Commit
d2c81346
authored
5 years ago
by
Dominique Benielli
Browse files
Options
Downloads
Patches
Plain Diff
still not working
parent
0af6d2cf
No related branches found
No related tags found
No related merge requests found
Pipeline
#3388
failed
5 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
multiview_platform/mono_multi_view_classifiers/utils/execution.py
+13
-13
13 additions, 13 deletions
...w_platform/mono_multi_view_classifiers/utils/execution.py
with
13 additions
and
13 deletions
multiview_platform/mono_multi_view_classifiers/utils/execution.py
+
13
−
13
View file @
d2c81346
...
...
@@ -236,13 +236,13 @@ def gen_k_folds(stats_iter, nb_folds, stats_iter_random_states):
return
folds_list
def
init_views
(
dataset
,
arg_views
):
def
init_views
(
dataset
_var
,
arg_views
):
r
"""
Used to return the views names that will be used by the
benchmark, their indices and all the views names.
Parameters
----------
datset : HDF5 dataset file
dat
a
set
_var
: HDF5 dataset file
The full dataset that wil be used by the benchmark.
arg_views : list of strings
The views that will be used by the benchmark (arg).
...
...
@@ -256,29 +256,29 @@ def init_views(dataset, arg_views):
all_views : list of strings
Names of all the available views in the dataset.
"""
nb_view
=
dataset
.
get
(
"
Metadata
"
).
attrs
[
"
nbView
"
]
nb_view
=
dataset
_var
.
get
(
"
Metadata
"
).
attrs
[
"
nbView
"
]
if
arg_views
!=
[
"
all
"
]:
allowed_views
=
arg_views
all_views
=
[
str
(
dataset
.
get
(
"
View
"
+
str
(
view_index
)).
attrs
[
"
name
"
])
all_views
=
[
str
(
dataset
_var
.
get
(
"
View
"
+
str
(
view_index
)).
attrs
[
"
name
"
])
if
type
(
dataset
.
get
(
"
View
"
+
str
(
view_index
)).
attrs
[
"
name
"
])
!=
bytes
else
dataset
.
get
(
"
View
"
+
str
(
view_index
)).
attrs
[
dataset
_var
.
get
(
"
View
"
+
str
(
view_index
)).
attrs
[
"
name
"
])
!=
bytes
else
dataset
_var
.
get
(
"
View
"
+
str
(
view_index
)).
attrs
[
"
name
"
].
decode
(
"
utf-8
"
)
for
view_index
in
range
(
nb_view
)]
views
=
[]
views_indices
=
[]
for
view_index
in
range
(
nb_view
):
view_name
=
dataset
.
get
(
"
View
"
+
str
(
view_index
)).
attrs
[
"
name
"
]
view_name
=
dataset
_var
.
get
(
"
View
"
+
str
(
view_index
)).
attrs
[
"
name
"
]
if
type
(
view_name
)
==
bytes
:
view_name
=
view_name
.
decode
(
"
utf-8
"
)
if
view_name
in
allowed_views
:
views
.
append
(
view_name
)
views_indices
.
append
(
view_index
)
else
:
views
=
[
str
(
dataset
.
get
(
"
View
"
+
str
(
viewIndex
)).
attrs
[
"
name
"
])
views
=
[
str
(
dataset
_var
.
get
(
"
View
"
+
str
(
viewIndex
)).
attrs
[
"
name
"
])
if
type
(
dataset
.
get
(
"
View
"
+
str
(
viewIndex
)).
attrs
[
"
name
"
])
!=
bytes
else
dataset
.
get
(
"
View
"
+
str
(
viewIndex
)).
attrs
[
"
name
"
].
decode
(
dataset
_var
.
get
(
"
View
"
+
str
(
viewIndex
)).
attrs
[
"
name
"
])
!=
bytes
else
dataset
_var
.
get
(
"
View
"
+
str
(
viewIndex
)).
attrs
[
"
name
"
].
decode
(
"
utf-8
"
)
for
viewIndex
in
range
(
nb_view
)]
views_indices
=
range
(
nb_view
)
...
...
@@ -286,7 +286,7 @@ def init_views(dataset, arg_views):
return
views
,
views_indices
,
all_views
def
gen_direcorties_names
(
directory
,
stats
I
ter
):
def
gen_direcorties_names
(
directory
,
stats
_i
ter
):
r
"""
Used to generate the different directories of each iteration if needed.
Parameters
...
...
@@ -301,9 +301,9 @@ def gen_direcorties_names(directory, statsIter):
directories : list of strings
Paths to each statistical iterations result directory.
"""
if
stats
I
ter
>
1
:
if
stats
_i
ter
>
1
:
directories
=
[]
for
i
in
range
(
stats
I
ter
):
for
i
in
range
(
stats
_i
ter
):
directories
.
append
(
directory
+
"
iter_
"
+
str
(
i
+
1
)
+
"
/
"
)
else
:
directories
=
[
directory
]
...
...
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