"Fake News Detection System" Kit by Nishu Kumari
by nishudubey2000 Updated: Oct 13, 2022
Guide Kit
I have created this solution as a part of the 24hr AI challenge. I have used the base kandi kit for fake news detection and train the dataset on political dataset. This solution will help the user to validate whether the news is fake or real and for this i used political dataset. A type of yellow journalism, fake news encapsulates pieces of news that may be hoaxes and is generally spread through social media and other online media. This is often done to further or impose certain ideas and is often achieved with political agendas. Such news items may contain false and/or exaggerated claims, and may end up being viralized by algorithms, and users may end up in a filter bubble. So, to solve this problem i have build a model that accurately classify a piece of news as REAL or FAKE. For training my model i used a political dataset. Using sklearn, we build a TfidfVectorizer on our dataset. Then, we initialize a PassiveAggressive Classifier and fit the model. In the end, the accuracy score and the confusion matrix tell us how well our model fares. Implemented a TfidfVectorizer, initialized a PassiveAggressiveClassifier, and fitted my model. I ended up obtaining an accuracy of 93.21% in magnitude. I have also added a demo link on https://drive.google.com/file/d/1U3BsAfd9zWifgbpH6zOOyYd_23TbSpbr/view?usp=sharing
scikit-learnby scikit-learn
scikit-learn: machine learning in Python
scikit-learnby scikit-learn
Python
53572
Version:1.2.2
License: Permissive (BSD-3-Clause)
pandasby pandas-dev
Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
pandasby pandas-dev
Python
37439
Version:v2.0.0rc1
License: Permissive (BSD-3-Clause)
numpyby numpy
The fundamental package for scientific computing with Python.
numpyby numpy
Python
23036
Version:v1.24.2
License: Permissive (BSD-3-Clause)
matplotlibby matplotlib
matplotlib: plotting with Python
matplotlibby matplotlib
Python
17111
Version:v3.7.1
License: No License
seabornby mwaskom
Statistical data visualization in Python
seabornby mwaskom
Python
10513
Version:v0.12.2
License: Permissive (BSD-3-Clause)
notebookby jupyter
Jupyter Interactive Notebook
notebookby jupyter
Jupyter Notebook
9914
Version:v7.0.0a18
License: Permissive (BSD-3-Clause)
DSIP-TASK-1-Data-Science-Internship-by Kumarinishu
DevStack Solution Internship Program "Data Science Intern" Task-1 on Fake news detection system using python and machine learning
DSIP-TASK-1-Data-Science-Internship-by Kumarinishu
Jupyter Notebook
0
Version:Current
License: No License