Logistic Regression code to match arbitray hypotheses to data sets