-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] add FLStatsHandler
#6220
[WIP] add FLStatsHandler
#6220
Conversation
Signed-off-by: KumoLiu <[email protected]>
Signed-off-by: KumoLiu <[email protected]>
Signed-off-by: KumoLiu <[email protected]>
for more information, see https://pre-commit.ci
Signed-off-by: KumoLiu <[email protected]>
Hi @Nic-Ma @wyli @holgerroth @YuanTingHsieh, could you please help review it first. Not sure if this workaround is acceptable, if so then I could add unittest. I have tested it locally with this example in NVFlare repo. Thanks in advance! |
Signed-off-by: KumoLiu <[email protected]>
class FLStatsHandler: | ||
""" | ||
FLStatsHandler defines a set of Ignite Event-handlers for all the NVFlare ``AnalyticsSender`` logics. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just from a naming point of view, do we want this to be called FLStatsHandler
or NVFlareStatsHandler
?
Update: Waiting for @chesterxgchen and @holgerroth to discuss a proposal. |
The changes in this PR have been included in NVIDIA/NVFlare#1925. |
PR #6220 was closed and NVFlareStatsHandler has now been implemented in NVFlare in NVIDIA/NVFlare#1925. However, there is still the piece in MonaiAlgo to attach the stats_sender in initialize, so this PR adds that missing piece. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: Kevin <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Fixes # .
Description
add
FLStatsHandler
for NVFlare.It mainly call
_add
inAnalyticsSender
.https://github.com/NVIDIA/NVFlare/blob/b0de532fc2f65de30eb8af728561bab33fdaf076/nvflare/app_common/widgets/streaming.py#L97
Since
AnalyticsSender
can only send toFLStatsHandler
after instantiated, I add it to ignite.engine.state as a workaround.Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.