# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# Probably need other ones.

from evaldets.visualization import *
import logging
# logging.basicConfig(level=logging.INFO)

# +
fig, axes = plt.subplots(1, 5)
s = 4
fs = 40
fig.set_figheight(3*s)
fig.set_figwidth(15*s)
fig, axes

axes[0].axis('off')
axes[0].imshow(show_single_gt(166023, mode="ret", q=1, v=1), aspect=1)
axes[0].set_title('A: min(Q)=1, id=166023', fontsize=fs)
axes[1].axis('off')
axes[1].imshow(show_single_gt(693003, mode="ret", q=20, v=1), aspect=1)
axes[1].set_title('B: min(Q)=20, id=693003', fontsize=fs)
axes[2].axis('off')
axes[2].imshow(show_single_gt(1264308, mode="ret", q=40, v=1), aspect=1)
axes[2].set_title('C: min(Q)=40, id=1264308', fontsize=fs)
axes[3].axis('off')
axes[3].imshow(show_single_gt(1147645, mode="ret", q=60, v=1), aspect=1)
axes[3].set_title('D: min(Q)=60, id=1264308', fontsize=fs)
axes[4].axis('off')
axes[4].imshow(show_single_gt(2079208, mode="ret", q=80, v=1), aspect=1)
axes[4].set_title('E: min(Q)=80, id=1264308', fontsize=fs)
fig.savefig("Min_Q_examples.pdf", bbox_inches='tight')
# -



StarcoderdataJupyterScriptsDedupFiltered