-
-
Notifications
You must be signed in to change notification settings - Fork 619
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
Add logging of mappings in BaseLogger #3295
base: master
Are you sure you want to change the base?
Conversation
Before testing this, I would like to be sure the feature is of interest. |
@vfdev-5 is it ok for you like that? If so, I'll fix the linting and adapt the tests |
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.
Thanks @nowtryz , this is going in a good direction, let's try to improve a bit more the code.
return metrics | ||
|
||
@classmethod | ||
def _compute_tags( |
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.
You can make this just a private helper method in this submodule, not necessarily a classmethod.
concat_tf: Callable[..., Union[str, Tuple[str, ...]]], | ||
log_text: bool, node: Iterable[Tuple[str, Any]], | ||
parent_tag: Union[str, Tuple[str, ...]], | ||
dest_dict: Dict[Any, Union[str, float, numbers.Number]] |
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'm not keen of passing dest_dict
as the argument, but maybe we can't do anything better here...
Fixes #3294
Description:
Adds support for
Mapping
metrics in loggersCheck list: