Skip to content

Developed a fake news prediction model using Support Vector Machine (SVM) and achieved an impressive 99.8% accuracy on the training dataset. The text preprocessing included stemming to normalize words, followed by the use of TF-IDF vectorization to convert the text data into numerical form

Notifications You must be signed in to change notification settings

Haseebasif7/Fake-News-Prediction-SVM-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

                                                    Fake News Detection with SVM

• Overview :

This repository contains a project for detecting fake news using a Support Vector Machine (SVM) model. The dataset used is from a Kaggle competition, and the model achieved an impressive accuracy of 98.9% on the training dataset.

• Preprocessing Steps :

Handling Missing Values Converted NaN values to empty strings to ensure consistency in text processing.

•Feature Engineering :

Created a new Content column by merging the title and author columns. This combined text was used as the feature for the model instead of the entire text column.

•Text Vectorization:

Used TF-IDF vectorization to convert the text data into numerical form, making it suitable for training the SVM model.

•Stemming :

Applied stemming to normalize words, reducing them to their root form.

•Model Training and Evaluation :

An SVM model was trained on the preprocessed data. Achieved an accuracy of 98.9% on the training dataset.

•Dataset

The dataset used in this project is from a Kaggle competition. It contains various news articles labeled as fake(1) or real(0).

•Contribution

Contributions are welcome! If you have any improvements or suggestions, please feel free to create a pull request or open an issue. For any questions, you can reach out via the issue tracker.

•Contact :

If you have any questions or need further information, please feel free to contact me. If you have any questions or need further information, please feel free to contact me.

About

Developed a fake news prediction model using Support Vector Machine (SVM) and achieved an impressive 99.8% accuracy on the training dataset. The text preprocessing included stemming to normalize words, followed by the use of TF-IDF vectorization to convert the text data into numerical form

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published