baseline prediction code.