Laying out the logic for the train predictor for the gshare