Skip to content

Commit b6fc115

Browse files
committed
add epochs smoke test:
1 parent bbd1ec5 commit b6fc115

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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

tests/smoke_tests/test_smoke_tests.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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
311324
async def test_mr_mtl_mnist(tolerance: float) -> None:
312325
coroutine = run_smoke_test(

0 commit comments

Comments
 (0)