cm=confusion_matrix([[10,20],[30,3]])
cm.set_classname(["Lion", "Tiger"]) # You can set the class name.cm.set_title("Lion or Tiger?") # You can set the title.
the input of the confusion_matrix must be two-dimensional array
Python list or numpy array are both allowed
You can set the name of the class and title.
define palette object
pset=palette(size=5, color="blue")
size = the quality and size of output confusion matrix image
color = the color of confusion matrix. (Now only blue is supported)
plotly.py Latest Release User forum PyPI Downloads License Data Science Workspaces Our recommended IDE for Plotly’s Python graphing library is Dash En