Cost Estimation for Factorized Machine Learning