Seol mar théacs é seo: Optimization for machine learning