Skip to content

Commit

Permalink
fixing code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankJonasmoelle committed Aug 20, 2024
1 parent 625b1f7 commit 27f8618
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/async-clients/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ First, make sure that FEDn is installed (we recommend using a virtual environmen
Clone FEDn

.. code-block::
git clone https://github.com/scaleoutsystems/fedn.git

Install FEDn and dependencies

.. code-block::
pip install fedn


Expand All @@ -33,14 +35,17 @@ Prepare the example environment, the compute package and seed model
Standing in the folder fedn/examples/async-clients

.. code-block::
pip install -r requirements.txt
Create the compute package and seed model:

.. code-block::
fedn package create --path client
.. code-block::
fedn run build --path client
Expand All @@ -52,22 +57,26 @@ Running a simulation
Deploy FEDn on localhost. Standing in the the FEDn root directory:

.. code-block::
docker-compose up
Initialize FEDn with the compute package and seed model

.. code-block::
python init_fedn.py
Start simulating clients

.. code-block::
python run_clients.py
Start the experiment / training sessions:

.. code-block::
python run_experiment.py
Once global models start being produced, you can start analyzing results using API Client, refer to the notebook "Experiment.ipynb" for instructions.
Expand Down

0 comments on commit 27f8618

Please sign in to comment.