How to Train Your Perceptron
16-385 Computer Vision (Kris Kitani)
Carnegie Mellon University
How to Train Your Perceptron 16-385 Computer Vision (Kris Kitani) - - PowerPoint PPT Presentation
PERCEPTRON How to Train Your Perceptron 16-385 Computer Vision (Kris Kitani) Carnegie Mellon University Lets start easy worlds smallest perceptron! w f y x y = wx (a.k.a. line equation, linear regression) Learning a Perceptron
16-385 Computer Vision (Kris Kitani)
Carnegie Mellon University
(a.k.a. line equation, linear regression)
What do you think the weight parameter is?
What do you think the weight parameter is?
not so obvious as the network gets more complicated so we use …
Given several examples
(gradient descent) and a perceptron
Given several examples
and a perceptron
(gradient descent)
Given several examples
and a perceptron
perceptron
true label perceptron parameter
(gradient descent)
Given several examples
and a perceptron
perceptron
true label perceptron parameter
(gradient descent)
what does this mean?
(some are better than others depending on what you want to do)
Before diving into gradient descent, we need to understand …
(a popular loss function)
1 2 1 2 3 `
(ˆ y − y)
1 2 1 2 3
1 2 1 2 3
1 2 1 2 3
1 2 1 2 3
(a.k.a. line equation, linear regression)
what is this activation function?
what is this activation function?
linear function!
Given several examples
(gradient descent)
and a perceptron
perceptron
true label perceptron parameter
Let’s demystify this process first…
Let’s demystify this process first…
just one line of code!
Let’s demystify this process first…
just one line of code! Now where does this come from?