[1D1D] Cost function and loss function

peter_yun
2 min readApr 15, 2018

what is the difference?

cost function

As far as I know it comes from the Jacobian Matrix which represents the derivitave in all the directions. And because it has become the standard in machine learning it sticks.

loss function

  • 아래는 svm 모델에서 쓰이는 hinge loss function
  • 슬라이드 계산을 보면 신기하게도 이해가 간다.
  • cost function과의 관계는 뭘까

what is the difference?

  • loss function : defined on a data point / prediction & label / measures the penalty
  • cost function : more general / a sum of loss functions over training set + some model complexity penalty (?)
  • A loss function is a part of a cost function which is a type of an objective function.
  • 외국인들도 헷갈려하는 개념인 것 같음
  • single training example 이냐 entire training set이냐로 이해하면 큰 문제는 없을 것 같다.

--

--