cm=confusion_matrix([[400,0,0,0],[0,156,8,14],[0,18,131,30],[0,60,28,75]])
cm.set_classname(["Acute", "Non-resolving","Normal","Inactive"]) # You can set the class name.cm.set_title("Retinal Specialist2") # 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.
3. 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)
Both parameters are not needed. size 5, color blue is defaultly set.
The Tidelift Subscription provides access to a continuously curated stream of human-researched and maintainer-verified data on open source packages and their licenses, releases, vulnerabilities, and development practices.