Adaptive Nonconvex Optimization for AI and Machine Learning