Model Pipeline - Input shape specification
This pipeline shows how data is prepared and fed into a TensorFlow model by specifying the input shape correctly. The input shape tells the model what size and format the data will be.
This pipeline shows how data is prepared and fed into a TensorFlow model by specifying the input shape correctly. The input shape tells the model what size and format the data will be.
Loss
0.5 |****
0.4 |***
0.3 |**
0.2 |*
0.1 |
+---------
1 2 3 Epochs| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | 0.45 | 0.82 | Model starts learning with moderate accuracy |
| 2 | 0.30 | 0.90 | Loss decreases and accuracy improves |
| 3 | 0.22 | 0.93 | Model converges with good accuracy |
input_shape parameter specify in a TensorFlow Keras model?input_shape tells the model what size and type of data it will receive as input.model = tf.keras.Sequential([ tf.keras.layers.Input(shape=(32, 32, 3)), tf.keras.layers.Conv2D(16, 3) ])
input_layer = tf.keras.layers.Input(shape=28, 28, 1)
Pass the test and this pattern moves unknown