Skip to content

Feature/evaluation dashboard#1642

Open
Prateek2007-cmd wants to merge 3 commits into
leonagoel:mainfrom
Prateek2007-cmd:feature/evaluation-dashboard
Open

Feature/evaluation dashboard#1642
Prateek2007-cmd wants to merge 3 commits into
leonagoel:mainfrom
Prateek2007-cmd:feature/evaluation-dashboard

Conversation

@Prateek2007-cmd

@Prateek2007-cmd Prateek2007-cmd commented Jun 13, 2026

Copy link
Copy Markdown

Description

implementing the Real-Time Evaluation Dashboard, allowing developers to visually benchmark recommendation model performance (Precision@K, Recall@K, NDCG@K) directly from the web interface.
Closes #1636
Changes included:

  • Backend APIs: Added GET /api/evaluate and GET /api/evaluate/history endpoints to backend/main.py. These trigger real-time benchmarking and manage a rolling history of the last 20 evaluations.
  • Evaluation Logic: Completed the run_evaluation stub in src/evaluation/evaluation.py. It now actively builds a test dataset, computes recommendations across all modes (Content, Collaborative, Sentiment, Hybrid), and calculates exact performance metrics.
  • Frontend Integration: Hooked up the pre-built benchmarking.js UI by calling initBenchmarkingDashboard() on DOM load in frontend/app.js. The dashboard now correctly fetches from the new APIs, renders SVG bar charts comparing model performance, and populates the recent run history table.

Related Issues

  • Resolves #1599

Type of Change

  • New Feature (Real-time Evaluation Dashboard and API endpoints)

Testing

  • Verified run_evaluation calculates correct metrics without ZeroDivisionErrors.
  • Verified /api/evaluate correctly records and returns evaluation history.
  • Confirmed the "Model Performance" UI panel renders correctly on the frontend and builds charts successfully upon clicking "Run Evaluation".

@github-actions

Copy link
Copy Markdown

🎉 Welcome to Hybrid Recommender, @Prateek2007-cmd! This is your first contribution here!

Labels added: gssoc:approved | mentor:leonagoel | status:review-needed

PR Description Checklist:

NO - What changed section
NO - Why section
NO - How to test section
YES - Related issue linked

⚠️ Some required sections are missing. Please update your PR description.

What happens next:

  1. @leonagoel will review your changes
  2. CI checks must pass
  3. Once approved, this PR will be auto-merged

⏱️ Please respond to review comments within 48 hours.

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.

Duplicate Wrapper Elements (cart.html)

1 participant