Question about the color scale in Fig. 6b vs. plot_predictions()

#590
by lishensuo - opened

Hi Dr. Theodoris,

I noticed a possible inconsistency between Fig. 6b of the Geneformer paper and the current cell_classification.ipynb / plot_predictions() implementation.

In Fig. 6b, the confidence color bar appears to indicate blue = +5 and red = βˆ’5. However, the current plotting code uses cmap="vlag" with center=0, so blue corresponds to negative logits and red to positive logits.

This latter direction also seems consistent with the heatmap itself: for example, actual non-failing cells tend to have red values in the non-failing prediction column, which would normally indicate a higher logit for the correct class.

Could you clarify whether:

the +5 and βˆ’5 labels in the Fig. 6b color bar were accidentally reversed, or
the original figure used a different transformation or plotting convention from the current plot_predictions() implementation?

Thank you very much for clarifying!

Thank you for pointing this out! Yes, it appears the sign was inadvertently reversed when labeling the text for the legend manually for the figure. The notebook with the automated figure legend is correct. There is higher confidence in calling the non-failing for the non-failing samples, etc. Thank you for catching this!

ctheodoris changed discussion status to closed

Sign up or log in to comment