yashasvini121 / predictive-calc

An interactive web application developed with Streamlit, designed for making predictions using various machine learning models. The app dynamically generates forms and pages from JSON configuration files. ⭐ If you found this helpful, consider starring the repo!
https://predictive-calc.streamlit.app/
MIT License
25 stars 72 forks source link

Issue-1 Completed: Separate Model Evaluation Plots #26

Closed ChitteshKumar closed 2 months ago

ChitteshKumar commented 2 months ago

I encountered an issue where multiple evaluation plots (prediction, error, and performance plots) are overlapping when rendered on the same page. Specifically, the prediction plot is being overridden by the error plot in the UI. This seems to be caused by not clearing the figures properly between each plot rendering.

Files Modified:

  1. page_handler.py: I made changes to the render_model_details() function by adding the clear_figure=True parameter in st.pyplot. This ensures that the figure being presented is cleared after each plot to avoid conflicts between the plots. Additionally, I added subheaders to better organize the display of each plot: Model Performance Plot, Model Error Plot and Model Prediction Plot.

  2. model_evaluation.py: This file handles the logic for generating and evaluating the model’s plots. I ensured that each plot is returned as a separate figure so they don’t interfere with each other.

Expected Behavior: Each plot should be rendered independently without overriding the others, and the user should be able to see all three plots clearly on the UI.

ChitteshKumar commented 1 month ago

Hi @yashasvini121 , I am writing to just inform you I have not received the Pull Shark Badge for this merge so can you help me with this.

yashasvini121 commented 1 month ago

@ChitteshKumar, You’ve already earned the GitHub Pull Shark badge for your first 2 merged pull requests. To reach the next level, you'll need at least 16 merged pull requests. Reference Hope this helps.