Fake_News_Passive-Aggressive _Classifier_KIT
by souravbanerjee0009 Updated: Aug 6, 2022
Guide Kit
1.The model I've chosen to use is the Passive-Aggressive (PA) Classifier (see original paper here). In essence, the PA classifier is an algorithm that only updates its weights ("aggressive" action) when it encounters examples for which its predictions are wrong, but otherwise remains unchanged ("passive" action). 2.Passive Aggressive Classifier belongs to the category of online learning algorithms in machine learning. It works by responding as passive for correct classifications and responding as aggressive for any miscalculation. 3.It contains 9 libraries, some of the libraries you already know such as pandas, numpy, sklearn. 4.Basic set-up libraries for our models :- i) import os ii) import numpy as np ii) import pandas as pd 5. ML toolkits :- i) from sklearn.model_selection import train_test_split ii) from sklearn.feature_extraction.text import TfidfVectorizer iii) from sklearn.metrics import accuracy_score, confusion_matrix, f1_score iv) from sklearn.utils.extmath import density V ) from sklearn.pipeline import make_pipeline 6.Data visualization :- i) import matplotlib.pyplot as plt ii) import seaborn as sns 7. I have take the data from the internet for Fake_News analysis(Kaggle), you can directly link the Kaggle with Jupiter in order to reduce the time.
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)
mplcyberpunkby dhaitz
"Cyberpunk style" for matplotlib plots
mplcyberpunkby dhaitz
Python
1210
Version:Current
License: Permissive (MIT)
onnxconverter-commonby microsoft
Common utilities for ONNX converters
onnxconverter-commonby microsoft
Python
134
Version:v1.13.0
License: Permissive (MIT)
Pipelineby sunjianzhou
design a simple pipeline for daily job, freer than sklearn
Pipelineby sunjianzhou
Python
8
Version:Current
License: No License
python-seaborn-guideby bajcmartinez
Companion source code for the intro to Seaborn on Live Code Stream
python-seaborn-guideby bajcmartinez
Jupyter Notebook
7
Version:Current
License: Permissive (MIT)
mlflow_trackingby fastforwardlabs
An AMP demonstrating using MLFlow to track parameters and metrics for scikit-learn models.
mlflow_trackingby fastforwardlabs
Python
0
Version:Current
License: Permissive (Apache-2.0)
Detecting-Fake-Newsby the-lady-bug
Detecting Fake News from Real News by using TfidfVectorizer and initialising PassiveAggressiveClassifier
Detecting-Fake-Newsby the-lady-bug
Jupyter Notebook
0
Version:Current
License: No License