H\"ormander conditions, transport equations and supervised learning