Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linear Regression #3

Open
4 tasks done
iammiori opened this issue Apr 22, 2019 · 4 comments
Open
4 tasks done

Linear Regression #3

iammiori opened this issue Apr 22, 2019 · 4 comments

Comments

@iammiori
Copy link
Owner

iammiori commented Apr 22, 2019

  • 1. hypothesis
  • 2. cost funcion
  • 3. Gradinet descent
  • 4. convex/non-convex
@iammiori
Copy link
Owner Author

hypothesis

(linear) hypothesis

H(x) = Wx +b

@iammiori
Copy link
Owner Author

cost function

  • = loss function, objective function
  • minimun value 찾는게 관건
  • H(x) - y
    cost = 1/m sigma from i=1 to i = m (H(x)-y)^2

결국 , 중요한거는 minimize cost

@iammiori
Copy link
Owner Author

gradient descent algorithm

  • minimize cost function
  • 경사도가 없는 부분 (기울기 =0) 인 곳까지 내려가
  • 기울기니까 미분을 활용
  • 최소비용에 수렴할 때 까지 반복
  • 알파가 너무 크면 오버슈팅
  • 알파가 너무 작으면 최소비용에 수렴하는데 시간 너무 오래 걸려

@iammiori
Copy link
Owner Author

convex vs non-convex

- 어느방향으로 얼마만큼 이동할 것인가

  • linear hypothesis -> convex function ( global minimum 가져)
  • non-convex function -> global minimum 보장 못해

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant