technology logo
technology logo

Fake_News_Passive-Aggressive _Classifier_KIT

share link

by souravbanerjee0009 dot icon Updated: Aug 6, 2022

Guide Kit 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

Python doticonstar image 53572 doticonVersion:1.2.2doticon
License: Permissive (BSD-3-Clause)

scikit-learn: machine learning in Python

Support
    Quality
      Security
        License
          Reuse

            scikit-learnby scikit-learn

            Python doticon star image 53572 doticonVersion:1.2.2doticon License: Permissive (BSD-3-Clause)

            scikit-learn: machine learning in Python
            Support
              Quality
                Security
                  License
                    Reuse

                      pandasby pandas-dev

                      Python doticonstar image 37439 doticonVersion:v2.0.0rc1doticon
                      License: Permissive (BSD-3-Clause)

                      Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                pandasby pandas-dev

                                Python doticon star image 37439 doticonVersion:v2.0.0rc1doticon License: Permissive (BSD-3-Clause)

                                Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          numpyby numpy

                                          Python doticonstar image 23036 doticonVersion:v1.24.2doticon
                                          License: Permissive (BSD-3-Clause)

                                          The fundamental package for scientific computing with Python.

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    numpyby numpy

                                                    Python doticon star image 23036 doticonVersion:v1.24.2doticon License: Permissive (BSD-3-Clause)

                                                    The fundamental package for scientific computing with Python.
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              mplcyberpunkby dhaitz

                                                              Python doticonstar image 1210 doticonVersion:Currentdoticon
                                                              License: Permissive (MIT)

                                                              "Cyberpunk style" for matplotlib plots

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        mplcyberpunkby dhaitz

                                                                        Python doticon star image 1210 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                        "Cyberpunk style" for matplotlib plots
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse
                                                                                  Python doticonstar image 134 doticonVersion:v1.13.0doticon
                                                                                  License: Permissive (MIT)

                                                                                  Common utilities for ONNX converters

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            onnxconverter-commonby microsoft

                                                                                            Python doticon star image 134 doticonVersion:v1.13.0doticon License: Permissive (MIT)

                                                                                            Common utilities for ONNX converters
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      Pipelineby sunjianzhou

                                                                                                      Python doticonstar image 8 doticonVersion:Currentdoticon
                                                                                                      no licences License: No License (null)

                                                                                                      design a simple pipeline for daily job, freer than sklearn

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                Pipelineby sunjianzhou

                                                                                                                Python doticon star image 8 doticonVersion:Currentdoticonno licences License: No License

                                                                                                                design a simple pipeline for daily job, freer than sklearn
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          python-seaborn-guideby bajcmartinez

                                                                                                                          Jupyter Notebook doticonstar image 7 doticonVersion:Currentdoticon
                                                                                                                          License: Permissive (MIT)

                                                                                                                          Companion source code for the intro to Seaborn on Live Code Stream

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    python-seaborn-guideby bajcmartinez

                                                                                                                                    Jupyter Notebook doticon star image 7 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                    Companion source code for the intro to Seaborn on Live Code Stream
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              mlflow_trackingby fastforwardlabs

                                                                                                                                              Python doticonstar image 0 doticonVersion:Currentdoticon
                                                                                                                                              License: Permissive (Apache-2.0)

                                                                                                                                              An AMP demonstrating using MLFlow to track parameters and metrics for scikit-learn models.

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        mlflow_trackingby fastforwardlabs

                                                                                                                                                        Python doticon star image 0 doticonVersion:Currentdoticon License: Permissive (Apache-2.0)

                                                                                                                                                        An AMP demonstrating using MLFlow to track parameters and metrics for scikit-learn models.
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  Detecting-Fake-Newsby the-lady-bug

                                                                                                                                                                  Jupyter Notebook doticonstar image 0 doticonVersion:Currentdoticon
                                                                                                                                                                  no licences License: No License (null)

                                                                                                                                                                  Detecting Fake News from Real News by using TfidfVectorizer and initialising PassiveAggressiveClassifier

                                                                                                                                                                  Support
                                                                                                                                                                    Quality
                                                                                                                                                                      Security
                                                                                                                                                                        License
                                                                                                                                                                          Reuse

                                                                                                                                                                            Detecting-Fake-Newsby the-lady-bug

                                                                                                                                                                            Jupyter Notebook doticon star image 0 doticonVersion:Currentdoticonno licences License: No License

                                                                                                                                                                            Detecting Fake News from Real News by using TfidfVectorizer and initialising PassiveAggressiveClassifier
                                                                                                                                                                            Support
                                                                                                                                                                              Quality
                                                                                                                                                                                Security
                                                                                                                                                                                  License
                                                                                                                                                                                    Reuse

                                                                                                                                                                                      See similar Kits and Libraries