grad_descent final