Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
declearn2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Magnet
DecLearn
declearn2
Commits
431cec6d
Verified
Commit
431cec6d
authored
8 months ago
by
ANDREY Paul
Browse files
Options
Downloads
Patches
Plain Diff
Skip unrequired evaluation rounds in functional tests.
parent
fe08f542
No related branches found
No related tags found
1 merge request
!70
Finalize version 2.6.0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/functional/test_toy_clf_fairness.py
+1
-0
1 addition, 0 deletions
test/functional/test_toy_clf_fairness.py
test/functional/test_toy_clf_secagg.py
+2
-1
2 additions, 1 deletion
test/functional/test_toy_clf_secagg.py
test/functional/test_toy_reg.py
+1
-0
1 addition, 0 deletions
test/functional/test_toy_reg.py
with
4 additions
and
1 deletion
test/functional/test_toy_clf_fairness.py
+
1
−
0
View file @
431cec6d
...
...
@@ -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
():
...
...
This diff is collapsed.
Click to expand it.
test/functional/test_toy_clf_secagg.py
+
2
−
1
View file @
431cec6d
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
test/functional/test_toy_reg.py
+
1
−
0
View file @
431cec6d
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment