Skip to content

Commit

Permalink
init README file
Browse files Browse the repository at this point in the history
  • Loading branch information
AvivSham committed Feb 11, 2021
1 parent 07b53d6 commit f412e65
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
# pFedHN
## Personalized Federated Learning using Hypernetworks

#### Installation
- Create a virtual environment with conda/virtualenv
- Clone the repo
- Run: ```cd <PATH_TO_THE CLONED REPO>```
- Run: ```pip install -e .``` to install necessary packages and path links.

---------

#### Reproduce Paper Results

---------
##### PfedHN Results on CIFAR10
- Run: ```cd experiments/pfedhn```
- Run: ```python trainer.py```

---------

##### PfedHN-PC Results on CIFAR10
- Run: ```cd experiments/pfedhn_pc```
- Run: ```python trainer.py```
2 changes: 1 addition & 1 deletion experiments/pfedhn_pc/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def train(data_name: str, data_path: str, classes_per_node: int, num_nodes: int,
parser.add_argument(
"--data-name", type=str, default="cifar10", choices=['cifar10', 'cifar100'], help="data name"
)
parser.add_argument("--data-path", type=str, default='/cortex/data/images', help='data path')
parser.add_argument("--data-path", type=str, default='data', help='data path')
parser.add_argument("--num-nodes", type=int, default=50)

##################################
Expand Down

0 comments on commit f412e65

Please sign in to comment.