Fit models using SGD in Julia