format.predictor_spec function

Format a predictor_spec