sgd_train WIP