Welcome to the Fake News Detection project repository. This project demonstrates the use of XGBoost to classify news articles as either "Fake" or "Real." You can use the provided Jupyter Notebook to try out the classifier on your chosen articles.
Follow these steps to get started with the project:
Before you begin, ensure you have Jupyter Notebook installed on your computer. If you don't have it installed, you can follow the installation instructions for your operating system below:
For Windows:
-
Install Python.
-
Open a command prompt or PowerShell window.
-
Install Jupyter Notebook by running:
pip install notebook
For macOS and Linux:
-
Jupyter Notebook is often included with scientific Python distributions like Anaconda. If you have Anaconda installed, you already have Jupyter Notebook.
-
If you prefer installing Jupyter Notebook via Python's package manager, run:
pip install notebook
-
Download the zipfile by clicking the green button with the drop down that says '<> Code'
-
Extract the zip file and save the files in your desired location
-
Launch Jupyter Notebook by running the following command in your Terminal or Window's command prompt:
jupyter notebook
-
In the Jupyter Notebook web interface, open the
search_data.ipynb
file. -
Follow the instructions provided in the Jupyter Notebook to try out the classifier on your chosen articles.
This project is licensed under the MIT License - see the LICENSE file for details.
Happy classifying!