pretty_print

# Import statement

from bcx.utils import pretty_print
pretty_print(params, offset=0, printer=<built-in function repr>)[source]

Pretty print the dictionary ‘params’

Parameters
paramsdict

The dictionary to pretty print

offsetint

The offset in characters to add at the begin of each line.

printercallable

The function to convert entries to strings, typically the builtin str or repr

Notes

Implementation is taken from sklearn.base._pprint with minor modifications to avoid additional dependencies.