๋ฐ์ํ
Machine Learning
[๋จธ์ ๋ฌ๋ ์
๋ฌธ] 03. Linear Regression์ cost ์ต์ํ ์๊ณ ๋ฆฌ์ฆ์ ์๋ฆฌ ์ค๋ช
[๋จธ์ ๋ฌ๋ ์ ๋ฌธ] 03. Linear Regression์ cost ์ต์ํ ์๊ณ ๋ฆฌ์ฆ์ ์๋ฆฌ ์ค๋ช
2019.08.07๋ชฉ์ฐจ Minimize Cost function Gradient descent algorithm Convex function Minimize Cost function ์ง๋๋ฒ ํฌ์คํธ์์ Hypothesis์ Cost function์ ์์๋ณด์๊ณ , ์ฐ๋ฆฌ๋ Cost function์ ์ต์ํ์ํค๋ W์ b๋ฅผ ๊ตฌํ๋ ๊ฒ์ ๊ณผ์ ๋ก ์ผ์๋ค. ์ค๋ช
์ ์ํด์, Hypothesis๋ฅผ ์์ ๊ฐ์ด ๊ฐ๋จํ๊ฒ ๋ง๋ค์๋ค. (b = 0) ๋ํ ๋ฐ์ดํฐ๊ฐ ์๋ ํ์ ๊ฐ์ด ์ฃผ์ด์ง๋ค๊ณ ๊ฐ์ ํด๋ณด์. X Y 1 1 2 2 3 3 ์ฐ๋ฆฌ๋ cost๋ฅผ ์ต์ํ ์ํค๋ ์ง์ ์ ์ฐพ์์ผ ํ๋ค.(=์ต์ํ์ํค๋ W๋ฅผ ์ฐพ์์ผ ํจ) W = 1, cost(W) = 0 W = 0, cost(W) = 4.67 W = 2, cost(W) = 4.67 W์ ๋ฐ๋ฅธ cost(..
[๋จธ์ ๋ฌ๋ ์
๋ฌธ] 02. TensorFlow๋ก Linear regression ๊ตฌํ
[๋จธ์ ๋ฌ๋ ์ ๋ฌธ] 02. TensorFlow๋ก Linear regression ๊ตฌํ
2019.07.04๋ชฉ์ฐจ Build graph using TensorFlow operations Place holders Build graph using TensorFlow operations Linear regression์ ๊ตฌํํ์ฌ ๊ทธ๋ํ๋ฅผ ๋ง๋ค๊ธฐ ์ํด ์์ ๊ทธ๋ฆผ์ ๋ณด๋ฉด์ ์ง๋ ๋ด์ฉ์ ๋ณต์ตํ๋๋ก ํ์. Hypothesis์ Cost function์ ์์ [๊ทธ๋ฆผ1]๊ณผ ๊ฐ๊ณ , ํ
์ํ๋ก์ฐ์ ๋ฉ์ปค๋์ฆ์ [๊ทธ๋ฆผ 2]์ ๊ฐ๋ค. # X and Y data x_train = [1, 2, 3] y_train = [1, 2, 3] W = tf.Variable(tf.random_normal([1]), name='weight') b = tf.Variable(tf.random_normal([1]), name='bias') # Our hyph..
[๋จธ์ ๋ฌ๋ ์
๋ฌธ] 01. Machine Learning ์ฉ์ด์ ๊ฐ๋
์ค๋ช
[๋จธ์ ๋ฌ๋ ์ ๋ฌธ] 01. Machine Learning ์ฉ์ด์ ๊ฐ๋ ์ค๋ช
2019.07.01๋ชฉ์ฐจ Machine Learning(๋จธ์ ๋ฌ๋) ์ด๋? Supervised Learning / Unsupervised Learning Supervised learning์ ์ข
๋ฅ Regression(ํ๊ท) Classification(๋ถ๋ฅ) Machine Learning(๋จธ์ ๋ฌ๋) ์ด๋? ๊ธฐ๊ณ ํ์ต(ๆฉๆขฐๅญธ็ฟ) ๋๋ ๋จธ์ ๋ฌ๋(์์ด: machine learning)์ ์ธ๊ณต ์ง๋ฅ์ ํ ๋ถ์ผ๋ก, ์ปดํจํฐ๊ฐ ํ์ตํ ์ ์๋๋ก ํ๋ ์๊ณ ๋ฆฌ์ฆ๊ณผ ๊ธฐ์ ์ ๊ฐ๋ฐํ๋ ๋ถ์ผ๋ฅผ ๋งํ๋ค. -https://ko.wikipedia.org/wiki/%EA%B8%B0%EA%B3%84_%ED%95%99%EC%8A%B5 ๋จธ์ ๋ฌ๋์ ์ผ์ข
์ ์ํํธ์จ์ด(ํ๋ก๊ทธ๋จ)์ด๋ค. ์ฌ์ฉ์์ ์
๋ ฅ์ ๊ธฐ๋ฐ์ผ๋ก ๋ฐ์ดํฐ๋ฅผ ๋ณด์ฌ์ฃผ๋๋ก ํ๋ ํ๋ก๊ทธ๋๋ฐ, ๊ฐ๋ฐ์๊ฐ '์ด๋ฐ ํ..