fixed logreg convergence bug. changed default term_threshold to 1e-3.