Sample code for implementation of machine learning algorithms.