Some Python and JavaScript examples of machine learning algorithms