Professional Documents
Culture Documents
Non-linear Classification
Neural Networks:
Representation x2
Non-linear x1
hypotheses size
# bedrooms
# floors
Machine Learning age
Andrew Ng
Testing:
What is this?
Andrew Ng Andrew Ng
pixel 1 pixel 1
Learning Learning
Algorithm Algorithm
pixel 2 pixel 2
1
12/5/2023
pixel 1
Learning
Algorithm
pixel 2
pixel 1 intensity
pixel 2 intensity
Neural Networks
Neural Networks: Origins: Algorithms that try to mimic the brain.
Was very widely used in 80s and early 90s; popularity
Representation diminished in late 90s.
Recent resurgence: State-of-the-art technique for many
Neurons and applications
the brain
Machine Learning
Andrew Ng
The “one learning algorithm” hypothesis The “one learning algorithm” hypothesis
Somatosensory Cortex
Auditory Cortex
2
12/5/2023
Neural Networks:
Representation
Model
representation I
Machine Learning
Andrew Ng
3
12/5/2023
Neural Networks:
Representation
Model
representation II
Machine Learning
Forward propagation: Vectorized implementation Neural Network learning its own features
Add .
Andrew Ng Andrew Ng
4
12/5/2023
Andrew Ng
Examples and
intuitions I
x1
x1
Machine Learning
Andrew Ng
-10
20 0 0
20 0 1
0 0
1 0
0 1 1 1
1 0
1 1
Andrew Ng Andrew Ng
5
12/5/2023
Neural Networks:
Representation
Examples and
intuitions II
Machine Learning
Putting it together:
-30 10 -10
Negation: 20 -20 20
20 -20 20
0
1
0 0
0 1
1 0
1 1
Andrew Ng Andrew Ng
6
12/5/2023
Neural Networks:
Representation Pedestrian Car Motorcycle Truck
Multi-class
classification
Machine Learning Want , , , etc.
when pedestrian when car when motorcycle
Andrew Ng Andrew Ng
Want , , , etc.
when pedestrian when car when motorcycle
Training set:
one of , , ,
pedestrian car motorcycle truck
Andrew Ng Andrew Ng