Skip to content

Commit

Permalink
Tweaks to heatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
mariya committed Nov 27, 2024
1 parent 9b9c4ce commit 4e4ebea
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/conformist/prediction_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def visualize_prediction_heatmap(self, min_softmax_threshold=0.5):
hm2.set_yticks([])

# Add label
hm2.set_xlabel("mean softmax\nfalse positive",
hm2.set_xlabel("mean softmax FP",
weight='bold',
rotation=90)

Expand All @@ -470,9 +470,8 @@ def visualize_prediction_heatmap(self, min_softmax_threshold=0.5):
# Rotate x labels
plt.setp(hm3.get_xticklabels(), rotation=90)

# Set y label
hm3.set_ylabel(f"MEAN PREDICTION SET SIZE, SOFTMAX > {min_softmax_threshold}",
weight='bold', labelpad=labelpad)
# Remove y label
hm3.set_ylabel('')

# Position y label to the right of heatmap
hm3.yaxis.set_label_position("right")
Expand All @@ -481,7 +480,9 @@ def visualize_prediction_heatmap(self, min_softmax_threshold=0.5):
hm3.set_yticks([])

# Remove x label
hm3.set_xlabel('')
hm3.set_xlabel("mean set size\nsoftmax > 0.5",
weight='bold',
rotation=90)

# Remove x ticks
hm3.set_xticks([])
Expand Down

0 comments on commit 4e4ebea

Please sign in to comment.