Is there a way I can reverse engineer a Seaborn heatmap saved as .png? I want to get the array of values out of it. Does the library provide a "load-from-image" facility, or is there any sta

  • $\begingroup$ Do you only have access to the .png file? $\endgroup$ Jun 17 '20 at 13:46
  • $\begingroup$ Yes. Shortly put, let's say I saved N confusion matrices into .png heatmaps, but now I want to compute an "average" between them, without re-running the very time-consuming pipeline. Is that possible? $\endgroup$ Jun 17 '20 at 14:00
  • $\begingroup$ I would highly doubt it. Even if you could get the information back from the colors, they will likely be aggregates, making an average between them difficult. You're likely better off to re-run your pipeline. And in the future, save both the actual confusion matrix data, and its image. $\endgroup$ Jun 17 '20 at 14:13
  • 1
    $\begingroup$ Right. The source of the confusion matrices is RASA NLU's evaluator. I will probably just clone their source and make so that it saves both and re-run. Thank you for your time! $\endgroup$ Jun 17 '20 at 14:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.