Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/News-Category-Prediction-Added #1130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ReaganBlade
Copy link

Pull Request Title:

News Articles Category Prediction


Description:

This pull request implements the following changes:

  1. Added a Support Vector Classifier (SVC) model to the Streamlit app for classifying news articles into categories.
  2. Integrated GridSearchCV to optimize hyperparameters for the SVC model, improving classification accuracy.
  3. Updated the Streamlit interface to allow users to input text and classify it using the best-performing model (SVC).
  4. Modified requirements.txt to include necessary dependencies such as scikit-learn, streamlit, and other relevant libraries.
  5. Enhanced the README.md file with a detailed project description, setup instructions, and usage notes.

Changes Made:

  • model.py: Created a new file for building and exporting the SVC model with the optimized hyperparameters.
  • app.py: Integrated the SVC model into the Streamlit app, allowing the user to classify news articles.
  • requirements.txt: Added required libraries such as scikit-learn, joblib, and others.
  • README.md: Updated the README file with more comprehensive instructions, including the description of the Jupyter Notebook used for model building.

Testing:

  • Tested the Streamlit app locally to ensure that the SVC model correctly classifies articles based on input.
  • Verified that the app responds as expected with various inputs and handles edge cases.
  • Ran cross-validation on the SVC model, confirming that the accuracy has improved compared to the baseline model.

Copy link

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@ReaganBlade
Copy link
Author

Please go through the Pull Request and Merge the Branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant