<jupyter_start><jupyter_text>Plotting the Video<jupyter_code>extent = [0,2200,0,1]
fontsize = 28
plt.figure(figsize=(40,10))
f, axarr = plt.subplots(4, sharex = True, figsize = (15,5))
cmap = colors.ListedColormap(['blue', 'limegreen','orange'])
axarr[0].imshow(result1[np.newaxis,:], cmap =cmap, aspect= "auto", extent = extent)
axarr[0].set_ylabel('Linear Sketch (k = 20)',rotation=0, fontsize = fontsize-3, labelpad = 160)
axarr[1].imshow(result2[np.newaxis,:], cmap =cmap, aspect= "auto", extent = extent)
axarr[1].set_ylabel('Two-Pass Tucker (k = 20, r = 10)',rotation=0, fontsize = fontsize-3, labelpad = 180)
axarr[2].imshow(result3[np.newaxis,:], cmap =cmap, aspect= "auto", extent = extent)
axarr[2].set_ylabel('One-Pass Tucker (k = 20, r = 10)',rotation=0, fontsize = fontsize-3, labelpad = 180)
axarr[3].imshow(result4[np.newaxis,:], cmap =cmap, aspect= "auto", extent = extent)
axarr[3].set_ylabel('One-Pass Tucker (k = 300, r = 10)',rotation=0, fontsize = fontsize-3, labelpad = 180)
[ax.set_yticks([]) for ax in axarr] 
#ax1.set_xticklabels(['', 0,10,20,30,40])
axarr[3].set_xlabel('Frame', fontsize = fontsize)
plt.tight_layout()

plt.savefig('plots/'+'video_frame_classification.pdf')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19593495934959348, 'fraction_numerical': 0.06097560975609756, 'mean_word_length': 7.098684210526316, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '446636', 'license': 'MIT', 'n_tokens_mistral': 547, 'n_tokens_neox': 496, 'n_words': 95, 'path': 'examples/video/plot_video.ipynb', 'repo_name': 'udellgroup/tensorsketch', 'size': '1230'}