Mentions légales du service

Skip to content
Snippets Groups Projects
Verified Commit 431cec6d authored by ANDREY Paul's avatar ANDREY Paul
Browse files

Skip unrequired evaluation rounds in functional tests.

parent fe08f542
No related branches found
No related tags found
1 merge request!70Finalize version 2.6.0
......@@ -147,6 +147,7 @@ async def server_routine(
rounds=5,
register={"min_clients": n_clients, "timeout": 2},
training={"n_epoch": 1, "batch_size": 10},
evaluate={"frequency": 5}, # only evaluate the last model
fairness={"batch_size": 50},
)
with warnings.catch_warnings():
......
......@@ -143,9 +143,10 @@ async def async_run_server(
)
# Set up hyper-parameters and run training.
config = FLRunConfig.from_params(
rounds=10,
rounds=8,
register={"min_clients": n_clients, "timeout": 2},
training={"n_epoch": 1, "batch_size": 1, "drop_remainder": False},
evaluate={"frequency": 8}, # only evaluate the last model
)
await server.async_run(config)
......
......@@ -411,6 +411,7 @@ async def async_run_server(
"batch_size": b_size,
"drop_remainder": False,
},
evaluate={"frequency": 10}, # only evaluate the last model
)
await server.async_run(config)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment