When to combine ML with traditional code