code snippets for things relating to neural nets