Perceptron Algorithm, and Newtonโs Method
๋ณธ ๊ธ์ 2018-2ํ๊ธฐ Stanford Univ.์ Andrew Ng ๊ต์๋์ Machine Learning(CS229) ์์ ์ ๋ด์ฉ์ ์ ๋ฆฌํ ๊ฒ์ ๋๋ค. ์ง์ ์ ์ธ์ ๋ ํ์์ ๋๋ค :)
Perceptron AlgorithmPermalink
์ด๋ฒ์๋ Learning Algorithm์ ์ญ์ฌ์ ๋ฐฐ๊ฒฝ ์ค ํ๋์ธ Perceptron Algorithm์ ๋ํด ์ดํด๋ณด์!
Perceptron Algorithm์ Logistic Regression์ sigmoid function

hypothesis
์์ Logistic Regression์ด๋ Perceptron์ด๋ ๋์ผํ rule๋ก
Perceptron์ 1960๋ ๋์ ์ธ๊ฐ์ Neuron์ ๋ณธ๋ฌ ๋ชจ๋ธ์ด๋ค. ํ์ง๋ง, Logistic Regression๊ณผ Linear Regression๊ณผ๋ ๋ฌ๋ฆฌ ๋ง๋ ํ ํต๊ณํ์ ์๋ฏธ๋ Maximum Likelihood Estimation๊ณผ ์ ์ ์ด ์๋ค.
Newtonโs MethodPermalink
Newtonโs Method๋ real-valued function
์ฐ๋ฆฌ๋ log likelihood
๊ทธ๋ฆฌ๊ณ ๊ทธ ๊ท์น์ ๋ค์๊ณผ ๊ฐ๋ค.

Newtonโs Method๋ ์ค์ง linear function๋ง์ ์ฌ์ฉํด ํจ์ซ๊ฐ์ด 0์ด ๋๋ ์ง์ ์ ์ฐพ๋ ๊ฐ์ฅ ์์ด์ ์ธ ๋ฐฉ์์ด๋ค.
Newtonโs Method๋ ์์ Gradient Descent ๋ฐฉ์๊ณผ ๋น๊ตํ์ ๋, ๋งค์ฐ ์ ์ step์ผ๋ก ์ต์ ์
์ฐ๋ฆฌ๊ฐ ์ํ๋
์ด๊ฒ์ ์ผ๋ฐํํ๋ฉด
์ด๋ค.
๊ทธ๋ฆฌ๊ณ ์ด๊ฒ์ vector form์ผ๋ก ์ผ๋ฐํํ๋ฉด ๋ค์๊ณผ ๊ฐ๋ค.
์ด๋,
๋ถ๋ช
Newtonโs Method๋ ์ ์ step์ผ๋ก ์ต์ ์
๋งบ์๋งPermalink
- Perceptron Algorithm์ ๊ฐ์ฅ ์ด๊ธฐ์ ๋จธ์ ๋ฌ๋ ๊ธฐ๋ฒ์ด๋ค.
- ํ์ง๋ง, ํต๊ณํ์ ์๋ฏธ๋ MLE์์ ์ ์ ์ด ์๋ค.
- Newtonโs Method๋ ํจ์ซ๊ฐ์ 0์ผ๋ก ๊ทผ์ฌํ๋ ๊ฐ์ฅ ์์ด์ ์ธ ์ ๊ทผ๋ฒ์ด๋ค.
- Newtonโs Method๋ ๋ ์ ์ step์ผ๋ก ์ต์ ํด์ ๋๋ฌํ๋ค.
- ํ์ง๋ง, n-by-n ํ๋ ฌ์ธ Hessian
์ ์ญํ๋ ฌ์ ๊ตฌํ๋ ๋น์ฉ์ด ํฌ๋ค๋ฉด ์ฌ์ฉํ ์ ์๋ค.
- ํ์ง๋ง, n-by-n ํ๋ ฌ์ธ Hessian