model is set up for weight learning and inference on train/test splits