How to handle the Normal Equation in Machine Learning

by resema — on  , 

"God does not care about our mathematical difficulties. He integrates empirically." Einstein

Normal Equation

The normal equation solves without iterating for the minima of the cost function. As a result it returns the where the cost function is at its minimum.

Comparison with Gradient Descent

Normal Equation

  • No need to choose
  • Don’t need to iterate
  • Need to compute
  • Slow if is very large

Gradient Descent

  • Need to choose
  • Needs many iterations
  • Works well even when is large

Comments