def format(self, paths=None, formatting='str', **kwargs):
    '\n        Format a representation of the model information in a useful way.\n\n        :Parameters:\n            paths : `iterable` ( `str` | [`str`] )\n                A set of paths to use when selecting which information should\n                formatted.  Everything beneath a provided path in the tree\n                will be formatted.  E.g. `statistics.roc_auc` and `statistics`\n                will format redundantly because `roc_auc` is already within\n                `statistics`.  Alternatively `statistics.roc_auc` and\n                `statistics.pr_auc` will format only those two specific\n                bits of information.\n            formatting : "json" or "str"\n                Which output formatting do you want?  "str" returns something\n                nice to show on the command-line.  "json" returns something\n                that will pass through :func:`json.dump` without error.\n        '
    paths = (paths or [])
    _paths = [(util.parse_pattern(path) if isinstance(path, str) else path) for path in paths]
    path_tree = util.treeify(_paths)
    if (formatting == 'str'):
        return self.format_str(path_tree, **kwargs)
    elif (formatting == 'json'):
        return self.format_json(path_tree, **kwargs)
    else:
        raise ValueError('Formatting {0} is not available for {1}.'.format(formatting, self.__class__.__name__))
Format a representation of the model information in a useful way.

:Parameters:
    paths : `iterable` ( `str` | [`str`] )
        A set of paths to use when selecting which information should
        formatted.  Everything beneath a provided path in the tree
        will be formatted.  E.g. `statistics.roc_auc` and `statistics`
        will format redundantly because `roc_auc` is already within
        `statistics`.  Alternatively `statistics.roc_auc` and
        `statistics.pr_auc` will format only those two specific
        bits of information.
    formatting : "json" or "str"
        Which output formatting do you want?  "str" returns something
        nice to show on the command-line.  "json" returns something
        that will pass through :func:`json.dump` without error.
def format(self, paths=None, formatting='str', **kwargs):
    '\n        Format a representation of the model information in a useful way.\n\n        :Parameters:\n            paths : `iterable` ( `str` | [`str`] )\n                A set of paths to use when selecting which information should\n                formatted.  Everything beneath a provided path in the tree\n                will be formatted.  E.g. `statistics.roc_auc` and `statistics`\n                will format redundantly because `roc_auc` is already within\n                `statistics`.  Alternatively `statistics.roc_auc` and\n                `statistics.pr_auc` will format only those two specific\n                bits of information.\n            formatting : "json" or "str"\n                Which output formatting do you want?  "str" returns something\n                nice to show on the command-line.  "json" returns something\n                that will pass through :func:`json.dump` without error.\n        '
    paths = (paths or [])
    _paths = [(util.parse_pattern(path) if isinstance(path, str) else path) for path in paths]
    path_tree = util.treeify(_paths)
    if (formatting == 'str'):
        return self.format_str(path_tree, **kwargs)
    elif (formatting == 'json'):
        return self.format_json(path_tree, **kwargs)
    else:
        raise ValueError('Formatting {0} is not available for {1}.'.format(formatting, self.__class__.__name__))