add class_weight and sgd_loss parameters