Implementing a Machine Learning SVM in Ruby