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
b6e5e759
Verified
Commit
b6e5e759
authored
8 months ago
by
ANDREY Paul
Browse files
Options
Downloads
Patches
Plain Diff
Update user-guide on fairness features.
parent
b39b2326
No related branches found
No related tags found
1 merge request
!69
Enable Fairness-Aware Federated Learning
Pipeline
#1011093
passed
8 months ago
Stage: clean
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/user-guide/fairness.md
+18
-4
18 additions, 4 deletions
docs/user-guide/fairness.md
with
18 additions
and
4 deletions
docs/user-guide/fairness.md
+
18
−
4
View file @
b6e5e759
...
@@ -335,7 +335,7 @@ as follows:
...
@@ -335,7 +335,7 @@ as follows:
from
declearn.fairness.monitor
import
FairnessMonitorServer
from
declearn.fairness.monitor
import
FairnessMonitorServer
fairness
=
FairnessMonitorServer
(
fairness
=
FairnessMonitorServer
(
f_type
=
"
demographic_parity
"
,
# choose any fairness definition
f_type
=
"
demographic_parity
"
,
# choose any fairness definition
)
)
optim
=
FLOptimConfig
.
from_params
(
optim
=
FLOptimConfig
.
from_params
(
...
@@ -353,12 +353,26 @@ controller. For instance, to use Fed-FairGrad:
...
@@ -353,12 +353,26 @@ controller. For instance, to use Fed-FairGrad:
from
declearn.fairness.fairgrad
import
FairgradControllerServer
from
declearn.fairness.fairgrad
import
FairgradControllerServer
fairness
=
FairgradControllerServer
(
fairness
=
FairgradControllerServer
(
f_type
=
"
demographic_parity
"
,
# choose any fairness definition
f_type
=
"
demographic_parity
"
,
# choose any fairness definition
eta
=
0.1
,
# adjust this based on the SGD learning rate and empirical tuning
eta
=
0.1
,
# adjust this based on the SGD learning rate and empirical tuning
eps
=
0.0
,
# change this to configure epsilon-fairness
eps
=
0.0
,
# change this to configure epsilon-fairness
)
)
```
```
Equivalently, the choice of fairness controller class and parameters may be
specified using a configuration dict (that may be parsed from a TOML file):
```
python
fairness
=
{
# mandatory parmaeters:
"
algorithm
"
:
"
fairgrad
"
,
# name of the algorithm
"
f_type
"
:
"
demographic_parity
"
,
# name of the group-fairness definition
# optional, algorithm-dependent hyper-parameters:
"
eta
"
:
0.1
,
"
eps
"
:
0.0
,
}
```
Notes:
Notes:
-
`declearn.fairness.core.list_fairness_functions`
may be used to review all
-
`declearn.fairness.core.list_fairness_functions`
may be used to review all
...
...
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