Classification and Regression via Integer Optimization for Neighborhood Change