Reworked logistic regression classifier

Merged PR #1227 to master and reworked logistic regression module to conform with new machine learning framework architecture.