]> piware.de Git - handwriting-recognition.git/blobdiff - README.md
Read MNIST db into numpy arrays, display
[handwriting-recognition.git] / README.md
index ad1494553d16fddaf4c96faa725c0d27c196c459..fa1c48496f16f54aaba8b1d40f637dc5db10e0b4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -27,9 +27,13 @@ plt.imshow(grad, cmap='gray')
 plt.show()
 
 plt.imshow(np.sin(np.linspace(0,10000,10000)).reshape(100,100) ** 2, cmap='gray')
-# does not work with QT_QPA_PLATFORM=wayland
+# non-blocking does not work with QT_QPA_PLATFORM=wayland
 plt.show(block=False)
 plt.close()
 ```
 
  - Get the handwritten digits training data with `./download-mnist.sh`
+
+ - Read the MNIST database into numpy arrays with `./read_display_mnist.py`. Plot the first ten images and show their labels, to make sure the data makes sense:
+
+   ![visualize training data](screenshots/mnist-visualize-training-data.png)