Deep learning frameworks for modeling how neural circuits learn