Hacking logistic regression together to work with various inputs