Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.06 KB

README.md

File metadata and controls

32 lines (19 loc) · 1.06 KB

Fake-News-Detection-ML

Python script for Fake News Classification using TF-IDF vectorization, Logistic Regression, and Passive Aggressive Classifier. Dataset preprocessing includes tokenization, stemming, and stopword removal. Achieves high accuracy in distinguishing between genuine and fake news.

Fake News Classification

This repository contains Python code for classifying news articles as fake or genuine. It uses a combination of NLTK for text processing and scikit-learn for machine learning.

Getting Started

  1. Clone the repository.
  2. Install the necessary libraries using pip install -r requirements.txt.
  3. Run fake_news_classification.py to train and test the models.

Dataset

The dataset consists of fake and genuine news articles.

Preprocessing

The preprocessing steps include tokenization, stemming, and removing stop words.

Models

Two models are implemented: Logistic Regression and Passive Aggressive Classifier.

Results

  • Logistic Regression Accuracy: XX%
  • Passive Aggressive Classifier Accuracy: XX%

Author

GANESH ADIMALUPU