logistic regression example in java