Created
April 30, 2018 21:32
-
-
Save dvgodoy/6ad78608f5ae7ebe2c31f84f9b001625 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fig = plt.figure(figsize=(12, 6)) | |
ax_fs = plt.subplot2grid((2, 4), (0, 0), colspan=2, rowspan=2) | |
ax_ph_neg = plt.subplot2grid((2, 4), (0, 2)) | |
ax_ph_pos = plt.subplot2grid((2, 4), (1, 2)) | |
ax_lm = plt.subplot2grid((2, 4), (0, 3)) | |
ax_lh = plt.subplot2grid((2, 4), (1, 3)) | |
fs = replay.build_feature_space(ax_fs, layer_name='hidden') | |
ph = replay.build_probability_histogram(ax_ph_neg, ax_ph_pos) | |
lh = replay.build_loss_histogram(ax_lh) | |
lm = replay.build_loss_and_metric(ax_lm, 'acc') | |
sample_figure = compose_plots([fs, ph, lm, lh], 80) | |
sample_figure.savefig('part1.png', dpi=120, format='png') | |
sample_anim = compose_animations([fs, ph, lm, lh]) | |
sample_anim.save(filename='part1.mp4', dpi=120, fps=5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment