Samples of machine learning code