Skip to content

fix(ai-service): dynamically calibrate CGPA scale (4.0 vs 10.0) in profile calculation#28

Open
UTKARSHH20 wants to merge 1 commit into
Mayank10123:mainfrom
UTKARSHH20:fix-profile-cgpa-calibration
Open

fix(ai-service): dynamically calibrate CGPA scale (4.0 vs 10.0) in profile calculation#28
UTKARSHH20 wants to merge 1 commit into
Mayank10123:mainfrom
UTKARSHH20:fix-profile-cgpa-calibration

Conversation

@UTKARSHH20

Copy link
Copy Markdown

This pull request fixes the logic discrepancy in the profile analyzer score calculation.

Changes

  • Calibrated CGPA calculation in ai_service/main.py to check if payload.cgpa > 4.0.
  • If the input is higher than 4.0, it is evaluated on a 10.0 scale; otherwise, it is evaluated on a 4.0 scale.
  • Resolves the issue where all CGPAs >= 4.0 were scored identically, ensuring correct placement probability output.

Closes #27

@vercel

vercel Bot commented May 20, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the mayank10123's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Bug: Profile Analyzer CGPA calibration assumes 4.0 scale while frontend allows 10.0 scale

1 participant