Deep Learning and Fully Connected Networks (FCNs)
Related: 2. Supervised Learning | 5. Activation Functions | 6. Loss Functions and Backpropagation | 8. Convolutional Neural Networks | Artificial Intelligence
Machine Learning vs Deep Learning
| Traditional ML | Deep Learning |
|---|---|
| Raw data → hand-crafted features → classifier | Raw data → learned representations → classifier |
| Requires domain expertise for feature extraction | Features learned automatically from data |
| Shallow representations | Multiple layers of increasingly meaningful representations |
Biological Inspiration
Neural networks are inspired by the human visual cortex (V1 → V2 → V3 etc.), which performs progressively more complex processing. The basic element in an artificial neural network is the artificial neuron (node/unit).
Fully Connected Network (FCN) Architecture
A fully connected network has:
- Input vector:
- Hidden values:
- Output value:
The forward computation:
Without an activation function, this is purely linear. The activation function introduces non-linearity.
One-Hot Encoding (OHE)
For multi-class classification, class labels are converted to binary vectors:
| Label | OHE Vector |
|---|---|
| 0 (zero) | |
| 3 (three) | |
| 6 (six) |
Key Hyperparameters
| Hyperparameter | Description |
|---|---|
| Epochs | Number of times the entire training set passes through the network |
| Batch size | Number of samples per gradient update |
| Learning rate | Scalar that controls the step size of weight updates |
| Number of hidden units | Width of each hidden layer |