Optimization of By-product Rendering Parameters using Machine Learning