HomeStreamOptimization for machine learning pdf