From f70a7d5008d195c0e27bea82d1b2439f83b5fca2 Mon Sep 17 00:00:00 2001 From: Andreas Hellander Date: Thu, 25 Jan 2024 00:38:31 +0100 Subject: [PATCH] Moved notebook into pytorch example folder --- .../{notebooks => mnist-pytorch}/API_Example.ipynb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename examples/{notebooks => mnist-pytorch}/API_Example.ipynb (99%) diff --git a/examples/notebooks/API_Example.ipynb b/examples/mnist-pytorch/API_Example.ipynb similarity index 99% rename from examples/notebooks/API_Example.ipynb rename to examples/mnist-pytorch/API_Example.ipynb index 103f5806d..ed126e536 100644 --- a/examples/notebooks/API_Example.ipynb +++ b/examples/mnist-pytorch/API_Example.ipynb @@ -63,8 +63,8 @@ "metadata": {}, "outputs": [], "source": [ - "client.set_package('../mnist-pytorch/package.tgz', 'numpyhelper')\n", - "client.set_initial_model('../mnist-pytorch/seed.npz')\n", + "client.set_package('package.tgz', 'numpyhelper')\n", + "client.set_initial_model('seed.npz')\n", "seed_model = client.get_initial_model()" ] }, @@ -96,7 +96,7 @@ }, { "cell_type": "markdown", - "id": "48b1c772", + "id": "4eeea5aa", "metadata": {}, "source": [ "Wait until the session finished. Then run a session using FedAdam:" @@ -122,7 +122,7 @@ }, { "cell_type": "markdown", - "id": "331beb08", + "id": "29552af9", "metadata": {}, "source": [ "Next, we retrive all model validations from all clients, extract the training accuracy metric, and compute its mean value accross all clients" @@ -187,7 +187,7 @@ }, { "cell_type": "markdown", - "id": "1f2112ae", + "id": "40db4542", "metadata": {}, "source": [ "Finally, plot the resulting accuracy"