I would like to know the difference between below mentioned stopping criteria used in various gradient descent algorithm
- $\frac{Prev\_fun\_value - curr\_fun\_value}{Pre\_fun\_value} \le tol$
- $Prev\_fun\_value - curr\_fun\_value \le tol*max(1,Prev\_fun\_value)$
where $Prev\_fun\_value$ is the previous function value before the update and $curr\_fun\_value$ is the current function value after the update of optimization variable and $tol$ is the tolerance.