fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
+ # Nx1 -> histogram
if train_input.size(1) == 1:
x = generate((10000, 1), alpha, alpha_bar, sigma,
ax.legend(frameon = False, loc = 2)
+ # Nx2 -> scatter plot
elif train_input.size(1) == 2:
x = generate((1000, 2), alpha, alpha_bar, sigma,
plt.get_current_fig_manager().window.setGeometry(2, 2, 1024, 768)
plt.show()
+# NxCxHxW -> image
elif train_input.dim() == 4:
x = generate((128,) + train_input.size()[1:], alpha, alpha_bar, sigma,