Smoothed Online Learning for Prediction in Piecewise Affine Systems