add option to train frame id using partial credit costs