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

News Articles Category Prediction #402

Merged
merged 4 commits into from
Oct 17, 2024

Conversation

pratikwayal01
Copy link
Contributor

Pull Request Title:

News Articles Category Prediction

Issue Number #177

Description:

This pull request implements the following changes:

  • Added a Support Vector Classifier (SVC) model to the Streamlit app for classifying news articles into categories.
  • Integrated GridSearchCV to optimize hyperparameters for the SVC model, improving classification accuracy.
  • Updated the Streamlit interface to allow users to input text and classify it using the best-performing model (SVC).
  • Modified requirements.txt to include necessary dependencies such as scikit-learn, streamlit, and other relevant libraries.
  • 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 opening this pull request! We appreciate your contribution to improving this project. Your PR is under review, and we'll get back to you shortly.
Don't forget to mention the issue you solved!.

To help move the process along, please tag @UppuluriKalyani, @Neilblaze, and @SaiNivedh26 for a faster review!

@UppuluriKalyani UppuluriKalyani merged commit 483d1cd into UppuluriKalyani:main Oct 17, 2024
3 checks passed
Copy link

🎉🎉 Thank you for your contribution! Your PR #402 has been merged! 🎉🎉

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

Successfully merging this pull request may close these issues.

2 participants