Gregory-crypto / fcc_sms_text_classification

SMS classification based on RNN (as part of freecodecamp qualification)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SMS text classification

In this challenge, I will create a machine learning model that will classify SMS messages as either "ham" or "spam". A "ham" message is a normal message sent by a friend. A "spam" message is an advertisement or a message sent by a company.

Also I will write a function called predict_message that takes a message string as an argument and returns a list. The first element in the list should be a number between zero and one that indicates the likeliness of "ham" (0) or "spam" (1). The second element in the list should be the word "ham" or "spam", depending on which is most likely.

For this challenge SMS Spam Collection dataset will be used. The dataset has already been grouped into train data and test data.

The first two cells import the libraries and data. The final cell tests your model and function.

About

SMS classification based on RNN (as part of freecodecamp qualification)


Languages

Language:Jupyter Notebook 100.0%