- Shounak Mondal
Detect SPAM Text Messages
Updated: Nov 28, 2020
Chances are that you have received a SPAM text message. It's irritating at the very least, and very dangerous at its worst. Below is a quick application to detect spam text messages with decently high precision and recall ( f1 score )
Steps :
Train Test split of the data
Exploratory analysis : word cloud
Create a pipeline with CountVectoriser as transformer and SVC as estimator
Hyperparamter tuning with RandomSearchCV
Calculate validation and test scores with best estimator
Most frequent words appearing in not SPAM ( HAM ) text messages

Most frequent words appearing in SPAM text messages

Score on test data with random search model with best estimator 0.9488789237668162
3 views0 comments