Browse Source

updated eval notebooks

tanyksg 5 years ago
parent
commit
bd11ec3ea9

BIN
save/MNIST_CNN_IID_acc_FP16.png


BIN
save/MNIST_CNN_IID_loss_FP16.png


BIN
save/MNIST_CNN_NONIID_acc_FP16.png


BIN
save/MNIST_CNN_NONIID_loss_FP16.png


BIN
save/MNIST_MLP_IID FP16 and FP32 Comparison_acc_FP16_32.png


BIN
save/MNIST_MLP_IID FP16 and FP32 Comparison_loss_FP16_32.png


BIN
save/MNIST_MLP_IID_acc_FP16.png


BIN
save/MNIST_MLP_IID_loss_FP16.png


BIN
save/MNIST_MLP_NONIID FP16 and FP32 Comparison_acc_FP16_32.png


BIN
save/MNIST_MLP_NONIID FP16 and FP32 Comparison_loss_FP16_32.png


BIN
save/MNIST_MLP_NONIID_acc_FP16.png


BIN
save/MNIST_MLP_NONIID_loss_FP16.png


File diff suppressed because it is too large
+ 22 - 0
src/.ipynb_checkpoints/Eval_fp16-32-checkpoint.ipynb


File diff suppressed because it is too large
+ 75 - 0
src/.ipynb_checkpoints/Eval_fp16-32-compare-checkpoint.ipynb


File diff suppressed because it is too large
+ 2 - 13
src/.ipynb_checkpoints/Eval_fp16-checkpoint.ipynb


+ 4 - 4
src/Eval.ipynb

@@ -496,9 +496,9 @@
  ],
  "metadata": {
   "kernelspec": {
-   "display_name": "fl_pytorch",
+   "display_name": "Python 3",
    "language": "python",
-   "name": "fl_pytorch"
+   "name": "python3"
   },
   "language_info": {
    "codemirror_mode": {
@@ -510,9 +510,9 @@
    "name": "python",
    "nbconvert_exporter": "python",
    "pygments_lexer": "ipython3",
-   "version": "3.7.3"
+   "version": "3.6.9"
   }
  },
  "nbformat": 4,
- "nbformat_minor": 2
+ "nbformat_minor": 4
 }

File diff suppressed because it is too large
+ 75 - 0
src/Eval_fp16-32-compare.ipynb


File diff suppressed because it is too large
+ 2 - 13
src/Eval_fp16.ipynb


+ 1 - 1
src/script_bash_FL_diffFP_mnist_cnn.sh

@@ -42,7 +42,7 @@ python federated-hierarchical8_main.py --local_ep=1 --local_bs=10 --Cepochs=10 -
 # This is for 1 cluster FL for 16-bit floating point
 python ./federated_main_fp16.py --local_ep=1 --local_bs=10 --frac=0.1 --model=cnn --dataset=mnist --iid=1 --gpu=1 --gpu_id=$GPU_ID --lr=0.01 --test_acc=97 --epochs=100 
 
-python ./federated_main_fp16.py --local_ep=1 --local_bs=10 --frac=0.1 --model=cnn --dataset=mnist --iid=0 --gpu=1 --gpu_id=$GPU_ID --lr=0.01 --epochs=300 --test_acc=97 
+python ./federated_main_fp16.py --local_ep=1 --local_bs=10 --frac=0.1 --model=cnn --dataset=mnist --iid=0 --gpu=1 --gpu_id=$GPU_ID --lr=0.01 --epochs=261 --test_acc=97 
 
 
 # This is for 2 clusters FL for 16-bit floating point

+ 5 - 2
src/script_bash_FL_diffFP_mnist_mlp.sh

@@ -13,6 +13,7 @@ python federated_main.py --local_ep=1 --local_bs=10 --frac=0.1 --model=mlp --dat
 # NON-IID
 python federated_main.py --local_ep=1 --local_bs=10 --frac=0.1 --model=mlp --dataset=mnist --iid=0 --gpu=1 --lr=0.1 --test_acc=95 --mlpdim=200 --epochs=1200
 
+python federated_main.py --local_ep=1 --local_bs=10 --frac=0.1 --model=mlp --dataset=mnist --iid=0 --gpu=1 --lr=0.1 --test_acc=95 --mlpdim=200 --epochs=1196
 
 # This is for 2 clusters HFL for 32-bit floating point
 # IID
@@ -38,9 +39,11 @@ python federated-hierarchical8_main.py --local_ep=1 --local_bs=10 --Cepochs=10 -
 
 # ================ 16-bit ================ 
 # This is for 1 cluster FL for 16-bit floating point
-python ./federated_main_fp16.py --local_ep=1 --local_bs=10 --frac=0.1 --model=mlp --dataset=mnist --iid=1 --gpu=1 --gpu_id=$GPU_ID --lr=0.01 --test_acc=95 --mlpdim=200 --epochs=600 
+python ./federated_main_fp16.py --local_ep=1 --local_bs=10 --frac=0.1 --model=mlp --dataset=mnist --iid=1 --gpu=1 --gpu_id=$GPU_ID --lr=0.01 --test_acc=95 --mlpdim=200 --epochs=650 
 
-python ./federated_main_fp16.py --local_ep=1 --local_bs=10 --frac=0.1 --model=mlp --dataset=mnist --iid=0 --gpu=1 --gpu_id=$GPU_ID --lr=0.1 --test_acc=95 --mlpdim=200 --epochs=1200
+python ./federated_main_fp16.py --local_ep=1 --local_bs=10 --frac=0.1 --model=mlp --dataset=mnist --iid=1 --gpu=1 --gpu_id=$GPU_ID --lr=0.01 --test_acc=95 --mlpdim=200 --epochs=468
+
+python ./federated_main_fp16.py --local_ep=1 --local_bs=10 --frac=0.1 --model=mlp --dataset=mnist --iid=0 --gpu=1 --gpu_id=$GPU_ID --lr=0.1 --test_acc=95 --mlpdim=200 --epochs=1196
 
 
 # This is for 2 clusters FL for 16-bit floating point

Some files were not shown because too many files changed in this diff