-
Notifications
You must be signed in to change notification settings - Fork 1
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
Integration/comet #3
base: master
Are you sure you want to change the base?
Conversation
changes for how an experiment is created in the logger
Integration feature/fix throttling
…cs_names Feature/comet integration/new metrics names
experiment_id: str = None, | ||
comet_mode: str = "online", | ||
tags: List = None, | ||
logging_frequency: int = 10, |
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.
I would change the default here to 1.
logging_frequency: int = 10, | |
logging_frequency: int = 1, |
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.
Me and Doug thought it would be better if the default value would be a value that doesn't cause the throttle.
catalyst/loggers/comet.py
Outdated
metrics, | ||
step=global_batch_step, | ||
epoch=global_epoch_step, | ||
prefix=f"{stage_key}/{scope}", |
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.
I would make this f"{stage_key}/{loader_key}_{scope}"
since the loader_key
tells you which dataset (train, valid or test) the metric was computed on. You can have cases where the stage_key
is train but the loader_key
is valid
. With the current implementation, these metrics will get overwritten.
prefix=f"{stage_key}/{scope}", | |
prefix=f"{stage_key}/{loader_key}_{scope}", |
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.
In all my tests it seemed like the stage_key and the loader_key were all set on "train" so it gave the metric a weird name. You can see an example in this ticket: https://comet-ml.atlassian.net/browse/CM-781
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.
So I think it's okay if the name looks weird like train/train_batch_precision_09
It would be up to the user to change the stage_key to something that is more relevant.
If the loader_key
is not included, then metrics computed on the valid
data would be written to the same metric name as the train
data and the user would not be able to differentiate between the two.
Before submitting (checklist)
catalyst-make-codestyle && catalyst-check-codestyle
(pip install -U catalyst-codestyle
).make check-docs
?pytest .
?latest
andminimal
requirements?Description
Related Issue
Type of Change
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
FAQ
Please review the FAQ before submitting an issue: