1

请参阅以下代码生成的分类报告。类标签、分数和颜色条的文本太大了。如何使文本变小?

for name, model in final_models:
    classes = ["unfavorable mRS (3-6)", "favorable mRS (0-2)"]
    class_vis = ClassificationReport(model, classes = classes, support = "percent")
    class_vis.score(X_test_trans, y_test)
    class_vis.show()

分类报告示例

4

1 回答 1

0

下面的代码行对我有用。

import matplotlib.pyplot as plt
plt.figure(figsize=(12,8))
于 2022-02-19T07:48:30.580 回答