recodehive / Stackoverflow-Analysis

Stack overflow is a professional community for developers. This repo analysis 3 years of developer Survey done by Stackoverflow and do visualization and predict the salary of Data Scientist in future.
https://stackoverflow-analysis.streamlit.app/
MIT License
219 stars 108 forks source link

Fix Model Evaluation Metrics Display Issue #342

Closed Swapnilden closed 2 months ago

Swapnilden commented 2 months ago

Fixes: #334

Summary

This pull request addresses a bug in the Streamlit app for job satisfaction prediction where evaluation metrics (accuracy, classification report, confusion matrix, ROC curve) were incorrectly displayed based on a single input prediction rather than using actual test data. The evaluation metrics have been removed to ensure accurate and relevant predictions are presented to the user.

Changes Made

  1. Removed Evaluation Metrics: The accuracy score, classification report, confusion matrix, and ROC curve calculations and displays have been removed from the Streamlit app. These evaluations should be part of the model development and validation process, not the user-facing prediction application.
  2. Label Encoding: Added label encoding for the user inputs to match what the model expects. This ensures that the input data is correctly formatted for the prediction model.
github-actions[bot] commented 2 months ago

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀