-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched to
numel
method to obtain the number of parameters. (#380)
- Loading branch information
Showing
2 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
examples/secure_aggregation/maskcrypt/maskcrypt_CIFAR10_resnet18.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
clients: | ||
# Type | ||
type: simple_he | ||
|
||
# The total number of clients | ||
total_clients: 10 | ||
|
||
# encrypt ratio | ||
encrypt_ratio: 0.1 | ||
random_mask: False | ||
|
||
# The number of clients selected in each round | ||
per_round: 5 | ||
|
||
# Should the clients compute test accuracy locally? | ||
do_test: false | ||
|
||
server: | ||
address: 127.0.0.1 | ||
port: 8001 | ||
random_seed: 1 | ||
simulate_wall_time: true | ||
|
||
data: | ||
# The training and testing dataset | ||
datasource: CIFAR10 | ||
|
||
# Number of samples in each partition | ||
partition_size: 1000 | ||
|
||
# IID or non-IID? | ||
sampler: iid | ||
|
||
trainer: | ||
# The maximum number of training rounds | ||
rounds: 25 | ||
|
||
# The maximum number of clients running concurrently | ||
max_concurrency: 5 | ||
|
||
# The target accuracy | ||
target_accuracy: 0.99 | ||
|
||
# The machine learning model | ||
model_name: resnet_18 | ||
|
||
# Number of epoches for local training in each communication round | ||
epochs: 5 | ||
batch_size: 32 | ||
optimizer: SGD | ||
algorithm: | ||
# Aggregation algorithm | ||
type: fedavg | ||
|
||
results: | ||
# Write the following parameter(s) into a CSV | ||
types: round, elapsed_time, accuracy, comm_overhead | ||
|
||
parameters: | ||
model: | ||
num_classes: 10 | ||
|
||
optimizer: | ||
lr: 0.01 | ||
momentum: 0.9 | ||
weight_decay: 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters