The logistic regression for the proceeding code will output the predicted value, where 0 is ham and 1 is spam.