adopted logreg to new 0.5-SNAPSHOT api