fix(mnist_test.py): subplot invalid ncols
This commit is contained in:
@@ -89,12 +89,12 @@ def plot_random_reconstruction(autoencoder: AAutoencoder,
|
|||||||
img_shape,
|
img_shape,
|
||||||
y):
|
y):
|
||||||
output, code = autoencoder.forward(example.flatten())
|
output, code = autoencoder.forward(example.flatten())
|
||||||
plt.subplot(1, 3, 1)
|
plt.subplot(1, 2, 1)
|
||||||
plt.matshow(
|
plt.matshow(
|
||||||
example.reshape(img_shape),
|
example.reshape(img_shape),
|
||||||
fignum=False)
|
fignum=False)
|
||||||
plt.title(f"Input ({y})")
|
plt.title(f"Input ({y})")
|
||||||
plt.subplot(1, 3, 2)
|
plt.subplot(1, 2, 2)
|
||||||
plt.matshow(
|
plt.matshow(
|
||||||
output.reshape(img_shape),
|
output.reshape(img_shape),
|
||||||
fignum=False)
|
fignum=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user