Giter Site home page Giter Site logo

ankit152 / fake-news Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 234 KB

The idea is to develop a machine learning program to identify when an article might be fake news.

Jupyter Notebook 94.67% Python 5.33%
fake-news text sentiment-analysis classification-algorithm keras-tensorflow lstms news-article machine-learning training-dataset label

fake-news's Introduction

Fake News ๐Ÿ“ฐ

The idea is to develop a machine learning program to identify whether an article might be fake news or not.

Dataset link: https://www.kaggle.com/c/fake-news/data

train.csv: A full training dataset with the following attributes:

  • id: unique id for a news article

  • title: the title of a news article

  • author: author of the news article

  • text: the text of the article; could be incomplete

  • label: a label that marks the article as potentially unreliable

    • 1: unreliable
    • 0: reliable
  • test.csv: A testing training dataset with all the same attributes at train.csv without the label.

Plots for better understanding ๐Ÿ“Š

Counplot of the datapoints

This is the countplot for the datapoints belonging to a specific class.

From the above plot it is concluded that the dataset is properly balanced.

Distribution of Title length of the News

This the distibution of the Length of the Title of the News.

From the above plot we can conclude that most of the Titles for the News have a length between 10-20 words.

Distribution of Text length of the News

This is the distribution of the length of the Text in the News.

From the above plot we can conclude that the distribution is skew as the maximum number of datapoints lies below 2000 words.

Model Training

Accuracy vs Epoch Plot

Loss vs Epoch Plot

fake-news's People

Contributors

ankit152 avatar aryan6290 avatar

Watchers

 avatar  avatar

Forkers

aryan6290

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.