Machine Learning, Optimization, Logistic Regression, Data Science, Convex Optimization.
np.matrix(np.zeros(X.shape[1])).T TOL = np.power(10.,-10) lam = 0.001 counter = 0 while np.linalg.norm(nabla_f(beta)) > TOL: counter += 1 beta -= -lam*nabla_f(beta) print('iter =',counter) print(beta) print('norm =',np.linalg.norm(nabla_f(beta))) Implement Newton’s Method Algorithm beta =