File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Parameters that describe server
2+ n_server_rounds : 1 # The number of rounds to run FL
3+
4+ # Parameters that describe clients
5+ n_clients : 2 # The number of clients in the FL experiment
6+ local_epochs : 1 # The number of epochs to complete for client
7+ batch_size : 32 # The batch size for client training
8+
9+ # Downsampling settings per client
10+ downsampling_ratio : 0.1 # percentage of original MNIST data to keep for minority numbers
Original file line number Diff line number Diff line change @@ -307,6 +307,19 @@ async def test_ditto_mnist_dynamic() -> None:
307307 assert_on_done_task (task )
308308
309309
310+ @pytest .mark .smoketest
311+ async def test_ditto_mnist_dynamic_train_by_epochs () -> None :
312+ coroutine = run_smoke_test (
313+ server_python_path = "examples.ditto_example.server" ,
314+ client_python_path = "examples.ditto_example.client_dynamic" ,
315+ config_path = "tests/smoke_tests/ditto_config_epochs.yaml" ,
316+ dataset_path = "examples/datasets/mnist_data/" ,
317+ )
318+ task = asyncio .create_task (coroutine )
319+ await try_running_test_task (task )
320+ assert_on_done_task (task )
321+
322+
310323@pytest .mark .smoketest
311324async def test_mr_mtl_mnist (tolerance : float ) -> None :
312325 coroutine = run_smoke_test (
You can’t perform that action at this time.
0 commit comments