move logistic loss weight outside log.