Machine learning notes and code snippets