Loading the lesson...
In the print dialog, choose "Save as PDF" as the destination.
Neural Networks - Lesson 7
Build, train, evaluate, and improve a neural network end to end
Keras (TensorFlow)Step 1
tensorflow.keras.datasets0-1matplotlib0-9) to class namesStep 2
Flatten
reshapes the input
Dense hidden layer
ReLU activation
Dense output layer
10 units, softmax
Keras with at least one hidden layerStep 3
| Setting | Value |
|---|---|
| Loss | sparse_categorical_crossentropy |
| Optimizer | adam |
| Metric | accuracy |
Step 3, continued
4-6)32 for a human-run notebook, 128 if run by an automated or robot processmatplotlibStep 4
6 test imagesStep 5
3-5 sentences) on what changed and its effect on performanceLoad
Explore
Build
Train
Evaluate
Improve
Flatten + Dense (ReLU) + Dense (softmax) Sequential model is the minimum viable image classifiersparse_categorical_crossentropy + adam + accuracy is the standard compile configuration for integer-labeled multi-class problemsMahmoud Abas|Neural Networks Assignment: Fashion MNIST with Keras