Cost Estimation For Factorized Machine Learning