Deep Learning
Deep learning is a type of machine learning that uses neural networks with many layers (hence 'deep') to learn complex patterns directly from raw data like images, audio, and text.
Data & AI
Each layer of a deep network learns features at a higher level of abstraction. For images, early layers might detect edges, middle layers detect shapes, and later layers detect whole objects like faces — all learned automatically rather than designed by hand.
Deep learning powers most modern breakthroughs: image recognition, speech-to-text, language translation, and large language models. It usually needs lots of data and computing power (often GPUs) to train well.
Examples
Python
import torch.nn as nn
model = nn.Sequential(
nn.Linear(784, 128), # input layer
nn.ReLU(),
nn.Linear(128, 10) # output layer (10 classes)
)
print(model)Output:
Sequential(
(0): Linear(in_features=784, out_features=128)
(1): ReLU()
(2): Linear(in_features=128, out_features=10)
)