Reducing the Costs to Design, Train, and Collect Data for Neural Networks with Combinatorial Optimization