Skip to content

This project is a machine learning model that detects whether a news article is Fake or True. It uses Natural Language Processing (NLP) and Naive Bayes classifier to classify news based on its content.

Notifications You must be signed in to change notification settings

Tushar1code/Fake-News-Detection-using-Machine-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“° Fake News Detection using Machine Learning

This project focuses on detecting fake news articles using Natural Language Processing (NLP) and Machine Learning.
It leverages the Bag-of-Words model, TF-IDF vectorization, and a Naive Bayes classifier to distinguish between True and Fake news.


πŸš€ Features

  • Preprocessed over 45,000 news articles (True + Fake dataset).
  • Implemented text cleaning (tokenization, stopword removal, lowercasing).
  • Converted text to numerical features using CountVectorizer + TF-IDF.
  • Trained a Multinomial Naive Bayes classifier with ~97% accuracy.
  • Built a pipeline for easy training and evaluation.
  • Allows custom news input to predict whether it's Fake or True.

πŸ› οΈ Tech Stack

  • Python 3
  • Pandas, NumPy – Data processing
  • NLTK – NLP preprocessing
  • Scikit-learn – ML models (Naive Bayes, train_test_split, TF-IDF)
  • Jupyter Notebook / VS Code

πŸ“Š Model Performance

  • Accuracy: ~97%
  • Precision/Recall/F1: High balance across both classes (Fake & True)

About

This project is a machine learning model that detects whether a news article is Fake or True. It uses Natural Language Processing (NLP) and Naive Bayes classifier to classify news based on its content.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published