Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问如何修改命令行参数,以执行论文中的几个基准示例? #4

Open
FHE027 opened this issue Nov 23, 2024 · 3 comments

Comments

@FHE027
Copy link

FHE027 commented Nov 23, 2024

论文中的Table 3给出了Plaintext/BatchCrypt/PackedBFV/PackedCKKS/FedPHE几种基准进行实验对比。在read.me中,作者给出了python main.py --dataset MNIST --epochs 100 --lr 0.001 --n_clients 8 --topk 0.1 --algorithm ckks --enc_batch_size 4096 --sim_len 200 --enc True --isSelection True --isSpars topk的执行示例,请问:
1.如果要验证第一种基准Plaintext,应该怎么修改上述的执行指令?
2.如果要验证paillier/bfv/ckks三种基准,是否要将--isSelection True --isSpars topk设为false或者randk?
3.如果要验证本文的FedPHE基准,应该怎么修改上述的执行指令?
4.在我输入执行指令中,设置--enc False,并且在代码中设置default=false,但Anconda界面中的basic information仍然提示isEnc ture。请问该如何解决?

期待您的指导和帮助,谢谢!

@lunan0320
Copy link
Owner

感谢您对本项目的关注
1、测试 plaintext,修改 --enc Fasle --isSelection False
2、测试三个基准,修改 --algorithm paillier/bfv/ckks --isSelection False
3、测试FedPHE基准,项目中已经给出具体的示例 python main.py --dataset MNIST --epochs 100 --lr 0.001 --n_clients 8 --topk 0.1 --algorithm ckks --enc_batch_size 4096 --sim_len 200 --enc True --isSelection True --isSpars topk
4、设置 parser.add_argument('--enc',type=bool,default=False, help='enc or not')

@Fennel1
Copy link

Fennel1 commented Dec 11, 2024

请问CIFAR10 FedPHE的对应示例的命令行参数应该是怎么样的,谢谢了

@lunan0320
Copy link
Owner

lunan0320 commented Dec 11, 2024

@Fennel1 运行 FedPHE 项目的 CIFAR10, 只需要修改 dataset 即可,
python main.py --dataset CIFAR10 --epochs 100 --lr 0.001 --n_clients 8 --topk 0.1 --algorithm ckks --enc_batch_size 4096 --sim_len 200 --enc True --isSelection True --isSpars topk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants