Code Monkey home page Code Monkey logo

confplot's People

Contributors

fcakyon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

confplot's Issues

facecolors won't get updated anymore

Hello, I have used this package for my ml multiclass modeling alot. I like the formatting and the level of details in the plot. But recently I have noticed that the coloring of the plot are broken. I suspect that it might be related to recent updates in some of the dependencies.
Here is what I get with the following code

# import package
import confplot
from pandas import DataFrame
import numpy as np
# assume you have a confusion matrix array like this
array = np.array( [[13, 0, 1, 0, 2, 0], [ 0, 50, 2, 0, 10, 0], [ 0, 13, 16, 0, 0, 3], [ 0, 0, 0, 13, 1, 0], [ 0, 40, 0, 1, 15, 0], [ 0, 0, 0, 0, 0, 20]] )
# convert it to a pandas dataframe
df_cm = DataFrame(array, index=range(1, 7), columns=range(1, 7))
# create and save confusion matrix plot as "cm_plot.png"
confplot.plot_confusion_matrix_from_matrix(df_cm)

download

As you can see the diagonal and the last row/columns are not in the color they used to be. I dug into the code and it looks like the plot rendering neglects the facecolor updates in the quadmesh.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.