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)
This is my favourite function - the Rastrigin function. What sparked my curiosity and interest in the function was its complexity in terms of many local optimum points, which makes it particularly in
By default, networkx has problems with drawing self-loops in graphs. It makes it hard to draw a graph with self-loops or to make a nicely looking chord diagram. This repository provides some code to