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