Skip to content

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.

Notifications You must be signed in to change notification settings

GaneshAdimalupu/Fake-News-Detection-ML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published