Coded computation for machine learning