Modify the code in ols_grad_decent to accept arguments eps and max_iter. Terminate the iteration whenever the maximum number of iterations has been reached or the `∞-norm change between iterations is less than eps. As a test, print the number of iterations to the console before returning the result with the function print. Compare the performance to the gradient descent function once again.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here