Skip to content

This repository utilizes the Keras API within the TensorFlow framework to create a classification model for distinguishing genuine and fake news headlines

Notifications You must be signed in to change notification settings

farrukh-saif/Fake-News-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Fake News Detection Model

This project uses the TensorFlow framework and the Keras API to build a classification model for detecting fake news headlines. The model is trained on a dataset of news headlines labeled as either genuine or fake.

Data

The dataset used for training and testing the model consists of news headlines labeled as either genuine or fake.

Preprocessing

Before training the model, data preprocessing steps such as tokenization and padding are applied to the input data.

Model

The model consists of an embedding layer and a series of dense layers. The final layer uses a sigmoid activation function to output a probability value between 0 and 1, with 0 indicating a genuine headline and 1 indicating a fake headline.

Training

The model is trained using the Adam optimization algorithm and the binary cross-entropy loss function.

Evaluation

The model is evaluated on a holdout test set and the evaluation metric used is accuracy

About

This repository utilizes the Keras API within the TensorFlow framework to create a classification model for distinguishing genuine and fake news headlines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published