repr_class#

pytorch_forecasting.utils.repr_class(obj, attributes: List[str] | Dict[str, Any], max_characters_before_break: int = 100, extra_attributes: Dict[str, Any] = {}) str[source]#

Print class name and parameters.

Parameters:
  • obj – class to format

  • attributes (Union[List[str], Dict[str]]) – list of attributes to show or dictionary of attributes and values to show max_characters_before_break (int): number of characters before breaking the into multiple lines

  • extra_attributes (Dict[str, Any]) – extra attributes to show in angled brackets

Returns:

str