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

Feature Request: News Articles Category Prediction #1130

Closed

Conversation

ReaganBlade
Copy link

@ReaganBlade ReaganBlade commented Oct 17, 2024

Pull Request Title: News Articles Category Prediction

Issue No : #1102


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.

@ReaganBlade
Copy link
Author

@Niketkumardheeryan Sir please add Hacktoberfest-accepted, gssoc-ext Labels to this pull request

@ReaganBlade ReaganBlade changed the title feat/News-Category-Prediction-Added Feature Request: News Articles Category Prediction Oct 19, 2024
@Niketkumardheeryan
Copy link
Owner

Hey @ReaganBlade we don't accept.py file try to add .ipynb file

@Niketkumardheeryan
Copy link
Owner

Create new PR now

@ReaganBlade ReaganBlade deleted the feat/News-Cat-Pred branch November 5, 2024 12:32
@ReaganBlade ReaganBlade restored the feat/News-Cat-Pred branch November 5, 2024 12:32
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.

2 participants