Skip to content

Commit 4e4ebea

Browse files
committed
Tweaks to heatmap
1 parent 9b9c4ce commit 4e4ebea

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/conformist/prediction_dataset.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def visualize_prediction_heatmap(self, min_softmax_threshold=0.5):
452452
hm2.set_yticks([])
453453

454454
# Add label
455-
hm2.set_xlabel("mean softmax\nfalse positive",
455+
hm2.set_xlabel("mean softmax FP",
456456
weight='bold',
457457
rotation=90)
458458

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

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

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

483482
# Remove x label
484-
hm3.set_xlabel('')
483+
hm3.set_xlabel("mean set size\nsoftmax > 0.5",
484+
weight='bold',
485+
rotation=90)
485486

486487
# Remove x ticks
487488
hm3.set_xticks([])

0 commit comments

Comments
 (0)