How to change font size in yellowbrick classification report?

216 views Asked by At

See classification report produced by the code below. The text for the class labels, scores, and color bar are way too big. How can I make the text smaller?

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()

Example of classification report

1

There are 1 answers

1
MAR On

The lines of code below worked for me.

import matplotlib.pyplot as plt
plt.figure(figsize=(12,8))