How to implement classification using logistic regression in Ruby | Open Awesome