Machine Learning, Data Science, Deep Learning, Artificial Intelligence, Towards Data Science.
np.array(losses) fig, ax = plt.subplots() plt.plot(losses.T[0], label='Discriminator') plt.plot(losses.T[1], label='Generator') plt.title("Validation Losses") plt.legend() plt.show() def show_images(generated_images): n_images = len(generated_images) cols = 5 rows = n_images//cols