2

In Yellowbrick visiualization library, the default color for the classification report is red: from lighter to darker tones. Is there a way to change this color and use green, blue, etc.?

Gursel Karacor
  • 1,137
  • 11
  • 21

1 Answers1

6

when defining the visualizer, you can set a color sequence(cmap).

viz = ClassificationReport(model,  cmap='PuRd')
viz.score(X_test, y_test)

PurpletoRedReport

You can find the different color sequences at

http://www.scikit-yb.org/en/latest/api/palettes.html#color-sequences

larrywgray
  • 993
  • 1
  • 7
  • 14