马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
html_code = f"""
<div style="display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 30px">
<span>
<h3 style="line-height: 30px; background-color: #cc3d76; padding: 20px 20px; border-radius: 8px">Precision {precision:.2f}</h3>
</span>
<span>
<h3 style="line-height: 30px; background-color: #b3245d; padding: 20px 20px; border-radius: 8px">Recall {recall:.2f}</h3>
</span>
<span>
<h3 style="line-height: 30px; background-color: #d40457; padding: 20px 20px; border-radius: 8px">F1-Score {f1Score:.2f}</h3>
</span>
</div>
"""
HTML(html_code)
html函数的作用是什么?前面的代码已经绘制了混淆矩阵 |