The vocabulary of every model you'll build
Keras provides over a hundred layers, but you'll use a small core constantly. Memorize these and the rest will fall into place.
Core layers: Dense (fully connected), Conv2D (image convolution), BatchNormalization, Dropout, MaxPooling2D, GlobalAveragePooling2D, Flatten, Reshape.
Activation functions: relu (default for hidden layers), gelu (transformer hidden layers), swish (EfficientNet), tanh (LSTM/GRU cells), sigmoid (binary output), softmax (multi-class output — but pair with from_logits=True in the loss for numerical stability).
The from_logits=True idiom: when using
SparseCategoricalCrossentropy or BinaryCrossentropy, always set from_logits=True and skip the softmax/sigmoid in your model's output layer. The loss computes the activation internally using the numerically stable log-sum-exp formula. Adding softmax then taking log can produce NaN with extreme logits.