repr_class#
- pytorch_forecasting.utils._utils.repr_class(obj, attributes: List[str] | Dict[str, Any], max_characters_before_break: int = 100, extra_attributes: Dict[str, Any] = None) str [来源]#
打印类名和参数。
- Parameters:
obj – 用于格式化的类
attributes (Union[List[str], Dict[str]]) – 要显示的属性列表或属性和值字典 to show max_characters_before_break (int): 在换行之前的字符数
extra_attributes (字典[字符串, 任意]) – 以尖括号显示的额外属性
- Returns:
字符串