Machine Learning with Operational Costs