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
7debfc97
Unverified
Commit
7debfc97
authored
7 months ago
by
Michael
Committed by
GitHub
7 months ago
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' into Occidata
parents
dab33070
283a5bb1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+5
-2
5 additions, 2 deletions
.gitignore
README.md
+6
-1
6 additions, 1 deletion
README.md
run_exp.py
+2
-2
2 additions, 2 deletions
run_exp.py
with
13 additions
and
5 deletions
.gitignore
+
5
−
2
View file @
7debfc97
...
...
@@ -12,5 +12,8 @@ pub/*
data/*
*.tgz
*.pyc
src/__pycache__/*
\ No newline at end of file
info.log
*.ipynb
launch.json
backup_results/*
*.sh
\ No newline at end of file
This diff is collapsed.
Click to expand it.
README.md
+
6
−
1
View file @
7debfc97
...
...
@@ -8,5 +8,10 @@
3.
Histogram plots and a summary table of various experiments can be obtained running
`src/utils_results.py`
To use driver.py use the following parameters :
`python driver.py --exp_type --dataset --heterogeneity_type --num_clients --num_samples_by_label --num_clusters --centralized_epochs --federated_rounds --seed `
To run all experiments in exp_config.csv user
`run_exp.py`
.
Once all experiments are done, to get results run
`src/utils_results.src`
.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
run_exp.py
+
2
−
2
View file @
7debfc97
...
...
@@ -20,6 +20,7 @@ with open(csv_file, newline='') as csvfile:
"
python
"
,
"
driver.py
"
,
"
--exp_type
"
,
exp_type
,
"
--dataset
"
,
dataset
,
"
--nn_model
"
,
nn_model
,
"
--heterogeneity_type
"
,
heterogeneity_type
,
"
--num_clients
"
,
num_clients
,
...
...
@@ -27,8 +28,7 @@ with open(csv_file, newline='') as csvfile:
"
--num_clusters
"
,
num_clusters
,
"
--centralized_epochs
"
,
centralized_epochs
,
"
--federated_rounds
"
,
federated_rounds
,
"
--seed
"
,
seed
]
"
--seed
"
,
seed
]
# Run the command
subprocess
.
run
(
command
)
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