Skip to content
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

Added callable options for iteration_log and epoch_log in StatsHandler #5965

Merged

Conversation

vfdev-5
Copy link
Member

@vfdev-5 vfdev-5 commented Feb 9, 2023

Fixes #5964

Description

Added callable options for iteration_log and epoch_log in StatsHandler.

Ref: #5958 (reply in thread)

Types of changes

  • 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.

@vfdev-5 vfdev-5 force-pushed the issue-5964-statshandler-override-args branch from 9f52d54 to 1488b06 Compare February 9, 2023 11:10
@vfdev-5 vfdev-5 requested a review from Nic-Ma February 9, 2023 11:16
tests/test_handler_stats.py Outdated Show resolved Hide resolved
wyli and others added 2 commits February 9, 2023 12:18
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
@vfdev-5
Copy link
Member Author

vfdev-5 commented Feb 9, 2023

@wyli I wonder which job actually runs test_handler_stats.py, can you please put a link on it ?

@vfdev-5 vfdev-5 marked this pull request as ready for review February 9, 2023 12:58
@wyli
Copy link
Contributor

wyli commented Feb 9, 2023

I think this one https://github.com/Project-MONAI/MONAI/actions/runs/4134447826/jobs/7145596787

@wyli
Copy link
Contributor

wyli commented Feb 9, 2023

/build

@ericspod
Copy link
Member

ericspod commented Feb 9, 2023

I had a few minor suggestions but looks like a good change!

vfdev-5 and others added 2 commits February 9, 2023 23:06
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
Signed-off-by: vfdev <vfdev.5@gmail.com>
Copy link
Contributor

@Nic-Ma Nic-Ma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vfdev-5
Copy link
Member Author

vfdev-5 commented Feb 10, 2023

@Nic-Ma yes, I can take a look on that in a follow-up PR

@wyli
Copy link
Contributor

wyli commented Feb 10, 2023

/build

@Nic-Ma Nic-Ma enabled auto-merge (squash) February 10, 2023 08:21
@Nic-Ma Nic-Ma merged commit de2b48c into Project-MONAI:dev Feb 10, 2023
@vfdev-5 vfdev-5 deleted the issue-5964-statshandler-override-args branch February 10, 2023 09:07
wyli added a commit to wyli/MONAI that referenced this pull request Feb 13, 2023
Project-MONAI#5965)

Fixes Project-MONAI#5964

### Description

Added callable options for iteration_log and epoch_log in StatsHandler.

Ref:
Project-MONAI#5958 (reply in thread)


### 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).
- [x] 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`.
- [x] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: vfdev-5 <vfdev.5@gmail.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: vfdev <vfdev.5@gmail.com>
Co-authored-by: Wenqi Li <wenqil@nvidia.com>
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Wenqi Li <831580+wyli@users.noreply.github.com>
wyli pushed a commit that referenced this pull request Feb 20, 2023
… and MLFlow (#5976)

Follow-up PR on extending `iteration_log`/`epoch_log` functionality

### Description

> Could you please help also enable this feature for other very similar
handlers? Like:

https://github.com/Project-MONAI/MONAI/blob/dev/monai/handlers/tensorboard_handlers.py#L94
And:

https://github.com/Project-MONAI/MONAI/blob/dev/monai/handlers/mlflow_handler.py#L101

-
#5965 (review)

### 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).
- [x] 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`.
- [x] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

overriding iteration_log and epoch_log in StatsHandler
4 participants