Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Comparative-Evaluation-of-Clustered-Federated-Learning-Methods
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SIG
Projects
Vilagil - Federated Learning
Comparative-Evaluation-of-Clustered-Federated-Learning-Methods
Commits
6cf1f0b1
Commit
6cf1f0b1
authored
7 months ago
by
Leahcimali
Browse files
Options
Downloads
Patches
Plain Diff
Update utils_results.py
Added nn_model and number of clients to results summary
parent
616b3166
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/utils_results.py
+2
-2
2 additions, 2 deletions
src/utils_results.py
with
2 additions
and
2 deletions
src/utils_results.py
+
2
−
2
View file @
6cf1f0b1
...
...
@@ -226,9 +226,9 @@ def summarize_results() -> None:
df_results
=
pd
.
DataFrame
(
list_results
)
df_results
.
sort_values
([
'
dataset_type
'
,
'
dataset
'
,
'
exp_type
'
,
'
number_of_clients
'
],
inplace
=
True
)
df_results
.
sort_values
([
'
dataset_type
'
,
'
dataset
'
,
'
exp_type
'
,
'
nn_model
'
,
'
number_of_clients
'
],
inplace
=
True
)
df_results
=
df_results
[[
'
exp_type
'
,
'
dataset
'
,
'
num_clusters
'
,
'
dataset_type
'
,
"
accuracy
"
,
"
ARI
"
,
"
AMI
"
,
"
hom
"
,
"
cmplt
"
,
"
vm
"
]]
df_results
=
df_results
[[
'
exp_type
'
,
'
nn_model
'
,
'
number_of_clients
'
,
'
dataset
'
,
'
num_clusters
'
,
'
dataset_type
'
,
"
accuracy
"
,
"
ARI
"
,
"
AMI
"
,
"
hom
"
,
"
cmplt
"
,
"
vm
"
]]
df_results
.
to_csv
(
"
results/summarized_results.csv
"
,
float_format
=
'
%.2f
'
,
index
=
False
,
na_rep
=
"
n/a
"
)
...
...
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