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
4b3341a7
Commit
4b3341a7
authored
Jan 16, 2020
by
Baptiste Bauvin
Browse files
Options
Downloads
Patches
Plain Diff
OK for error anlysys 2d
parent
e2e702f2
No related branches found
No related tags found
No related merge requests found
Pipeline
#3876
failed
Jan 16, 2020
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
config_files/config_test.yml
+1
-1
1 addition, 1 deletion
config_files/config_test.yml
multiview_platform/mono_multi_view_classifiers/result_analysis.py
+9
-5
9 additions, 5 deletions
...w_platform/mono_multi_view_classifiers/result_analysis.py
with
10 additions
and
6 deletions
config_files/config_test.yml
+
1
−
1
View file @
4b3341a7
...
...
@@ -25,7 +25,7 @@ Classification:
type
:
[
"
monoview"
]
algos_monoview
:
[
"
adaboost"
,]
algos_multiview
:
[
"
svm_jumbo_fusion"
]
stats_iter
:
1
stats_iter
:
2
metrics
:
[
"
accuracy_score"
,
"
f1_score"
]
metric_princ
:
"
f1_score"
hps_type
:
"
randomized_search-equiv"
...
...
This diff is collapsed.
Click to expand it.
multiview_platform/mono_multi_view_classifiers/result_analysis.py
+
9
−
5
View file @
4b3341a7
...
...
@@ -759,6 +759,7 @@ def analyze_biclass(results, benchmark_argument_dictionaries, stats_iter, metric
biclass_results
[
str
(
classifierPositive
)
+
str
(
classifierNegative
)][
"
metrics_scores
"
][
iteridex
]
=
metrics_scores
biclass_results
[
str
(
classifierPositive
)
+
str
(
classifierNegative
)][
"
example_errors
"
][
iteridex
]
=
example_errors
biclass_results
[
str
(
classifierPositive
)
+
str
(
classifierNegative
)][
"
feature_importances
"
][
iteridex
]
=
feature_importances
biclass_results
[
str
(
classifierPositive
)
+
str
(
classifierNegative
)][
"
labels
"
]
=
arguments
[
"
labels
"
]
logging
.
debug
(
"
Done:
\t
Analzing all biclass resuls
"
)
...
...
@@ -982,7 +983,7 @@ def gen_error_data_glob(combi_results, stats_iter):
def
publish_iter_biclass_example_errors
(
iter_results
,
directory
,
labels_dictionary
,
stats_iter
,
example_ids
):
example_ids
,
labels
):
for
labels_combination
,
combi_results
in
iter_results
.
items
():
base_file_name
=
os
.
path
.
join
(
directory
,
labels_dictionary
[
int
(
labels_combination
[
0
])]
+
"
-vs-
"
+
...
...
@@ -1002,7 +1003,7 @@ def publish_iter_biclass_example_errors(iter_results, directory,
delimiter
=
"
,
"
)
plot_2d
(
data
,
classifier_names
,
nbClassifiers
,
nbExamples
,
base_file_name
,
stats_iter
=
stats_iter
,
example_ids
=
example_ids
)
base_file_name
,
stats_iter
=
stats_iter
,
example_ids
=
example_ids
,
labels
=
labels
[
labels_combination
]
)
plot_errors_bar
(
error_on_examples
,
nbClassifiers
*
stats_iter
,
nbExamples
,
base_file_name
)
...
...
@@ -1110,6 +1111,7 @@ def format_previous_results(biclass_results):
error_analysis
=
dict
((
key
,
{})
for
key
in
biclass_results
.
keys
())
feature_importances_analysis
=
dict
((
key
,
{})
for
key
in
biclass_results
.
keys
())
feature_importances_stds
=
dict
((
key
,
{})
for
key
in
biclass_results
.
keys
())
labels
=
dict
((
key
,
""
)
for
key
in
biclass_results
.
keys
())
for
label_combination
,
biclass_result
in
biclass_results
.
items
():
metric_concat_dict
=
{}
...
...
@@ -1143,6 +1145,8 @@ def format_previous_results(biclass_results):
feature_importances_stds
[
label_combination
][
view_name
]
=
dataframe
.
groupby
(
dataframe
.
index
).
std
(
ddof
=
0
)
labels
[
label_combination
]
=
biclass_result
[
"
labels
"
]
added_example_errors
=
{}
for
example_errors
in
biclass_result
[
"
example_errors
"
]:
for
classifier_name
,
errors
in
example_errors
.
items
():
...
...
@@ -1151,20 +1155,20 @@ def format_previous_results(biclass_results):
else
:
added_example_errors
[
classifier_name
]
+=
errors
error_analysis
[
label_combination
]
=
added_example_errors
return
metrics_analysis
,
error_analysis
,
feature_importances_analysis
,
feature_importances_stds
return
metrics_analysis
,
error_analysis
,
feature_importances_analysis
,
feature_importances_stds
,
labels
def
analyzebiclass_iter
(
biclass_results
,
stats_iter
,
directory
,
labels_dictionary
,
data_base_name
,
example_ids
):
"""
Used to format the results in order to plot the mean results on the iterations
"""
metrics_analysis
,
error_analysis
,
feature_improtances
,
feature_improtances_stds
=
format_previous_results
(
biclass_results
)
metrics_analysis
,
error_analysis
,
feature_improtances
,
feature_improtances_stds
,
labels
=
format_previous_results
(
biclass_results
)
results
=
publish_iter_biclass_metrics_scores
(
metrics_analysis
,
directory
,
labels_dictionary
,
data_base_name
,
stats_iter
)
publish_iter_biclass_example_errors
(
error_analysis
,
directory
,
labels_dictionary
,
stats_iter
,
example_ids
)
stats_iter
,
example_ids
,
labels
)
for
label_combination
,
feature_improtances_view
in
feature_improtances
.
items
():
labels
=
[
labels_dictionary
[
int
(
label_combination
[
0
])],
labels_dictionary
[
...
...
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