Example of using scikit-learn python library from within a Ruby application using PyCall This sample code shows you how to use scikit-learn (or any other python library) from within your Ruby application using PyCall. For more information about this see the blog post Using the scikit-learn machine learning library in Ruby using PyCall.