def prueba_matriz_confusion_con_categorias(): gf = Graficador(["0,0"], filas=1, col=1, estilo="seaborn") matriz = np.array([[25, 0, 0, 0, 0], [2, 30, 1, 0, 0], [1, 0, 45, 0, 5], [0, 0, 2, 62, 4], [1, 0, 3, 0, 29]]) gf.matriz_de_confusion( 0, matriz, labels_categorias=["Gato", "Perro", "Cerdo", "Caballo", "Vaca"]) gf.display_graficos()
def prueba_matriz_confusion_sin_categorias(): gf = Graficador(["0,0"], filas=2, col=2, estilo="seaborn") matriz = np.array([[25, 0, 0, 0, 0], [2, 30, 1, 0, 0], [1, 0, 45, 0, 5], [0, 0, 2, 62, 4], [1, 0, 3, 0, 29]]) gf.matriz_de_confusion(0, matriz) gf.display_graficos()