Implementations of machine learning algorithms