presentable package¶
Submodules¶
presentable.presentable module¶
- presentable.presentable.confusion_matrix(truth: list | array, prediction: list | array, tabulate_args: dict = {}, sklearn_args: dict = {}) None ¶
Prints a nicely formatted confusion matrix.
- Parameters:
truth (Union[list, np.array]) – Ground truth, reference values.
prediction (Union[list, np.array]) – Model predictions. Must be same size as prediction.
tabulate_args (dict, optional) – Optional additional customization for tabulate. Defaults to empty dict.
sklearn_args (dict, optional) – Optional additional customization for sklearn’s confusion_matrix. Defaults to empty dict.