todo: train by logistic_cg