Module for utils for logging
Functions
get_logstr_from_dict
get_logstr_from_dict(log_dict)
Combines a dict to a single str
Source code in niceml/utilities/logutils.py
| def get_logstr_from_dict(log_dict: dict):
"""Combines a dict to a single str"""
str_list: List[str] = [f"{key}: {value}" for key, value in log_dict.items()]
ret_str: str = "\n".join(str_list)
return ret_str
|