简化多值返回的包
Munin的Python项目详细描述
穆宁
Old Norse: Muninn
Reporting.
此包是用于生成分类报告的包。使用jinja2模板,请参阅文档。
快速启动
pip install munin
现在可以添加所有度量和绘图。
from munin import generate_html
from warg import NOD
...
metrics = NOD.dict_of(accuracy, precision, f1_score, recall, support).as_flat_tuples()
bundle = NOD.dict_of(title, confusion_matrix, metrics, predictions)
generate_html(file_name, **bundle)