Non-Asymptotic Analysis of Stochastic Approximation Algorithms for Machine Learning