GithubHelp home page GithubHelp logo

geoffreykimani / fakenewsmodel-data-flair- Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 11.33 MB

A model written to detect fake news from real ones. The full example can be found here(https://data-flair.training/blogs/advanced-python-project-detecting-fake-news/)

Jupyter Notebook 100.00%

fakenewsmodel-data-flair-'s Introduction

Fake News Classifier

Many users end up in a filter bubble on online media platforms with all sorts of news roaming the space. This project uses TfidfVectorizer and Passive Aggressive Classifier to detect fake news.

Setting Up The Project.

Install from github repo.

git clone https://github.com/jeffkim207/FakeNewsModel-Data-Flair-.git

Check for python in your system.

Python and pip are required. Check if they are installed by running;

sudo python --version
sudo pip --version

If not this can be resolved by running;

sudo apt-getupdate
sudo apt-get -y install python3python-pip python-dev

Jupyter NoteBook

If you don't have jupyter notebook follow the steps below to install

sudo -H pip install jupyter

Start your notebook by writing this command:

sudo jupyter notebook

Any errors of root access can be resolved by:

sudo jupyter notebook --allow-root

Running the notebook

Run the following command to install required libraries:

sudo pip install numpy pandas sklearn

If you are using a virtual environmnent you can create a kernel by running the following command:

ipython kernel install --user --name <<name_of_venv>> --display-name="<<name to display in jupyter kernel>>"

The angle brackets are holders of your specific variable/names.

fakenewsmodel-data-flair-'s People

Contributors

geoffreykimani avatar

Watchers

James Cloos avatar  avatar

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.