Using the logistic regression model and with a collection of spam dataset spam or ham can be identified.