Write a function ols_grad_decent with the same inputs and output as casl_ols_orth_proj, but replace the orthogonal projects with gradient descent. As a naïve stopping criterion, simply let the algorithm run for 100 iterations, starting at βb equal to all zeros. Test the function on some input data and compare to the orthogonal projection code
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here