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 MLDeep Learning
Raw data → hand-crafted features → classifierRaw data → learned representations → classifier
Requires domain expertise for feature extractionFeatures learned automatically from data
Shallow representationsMultiple 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:

LabelOHE Vector
0 (zero)
3 (three)
6 (six)

Key Hyperparameters

HyperparameterDescription
EpochsNumber of times the entire training set passes through the network
Batch sizeNumber of samples per gradient update
Learning rateScalar that controls the step size of weight updates
Number of hidden unitsWidth of each hidden layer