Fake news is a type of disinformation or propaganda that is spread via traditional news media or online social media. Like any disinformation campaign, its effects can be devastating. In this recipe, you will load a dataset of real and fake news, and utilize ML to determine when a news story is fake.
Fake news
Getting ready
Preparation for this recipe consists of installing pandas and scikit-learn in pip. The instructions are as follows:
pip install pandas sklearn
Also, extract fake_news_dataset.7z.
How to do it…
In the following steps, you will...