############################# Local Training and Prediction ############################# TBD