Functions for creating and using logistic regression models.
Implementation taken from Mathias Brandewinder
https://github.com/mathias-brandewinder/Machine-Learning-In-Action/blob/master/MachineLearningInAction/MachineLearningInAction/LogisticRegression.fs