sgd linear with penalty, todo update