Improve confidence calibration (Temperature Scaling)

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
54/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start in erml/detector.py at the post-processing step where softmax is applied. Read how logits and confidence scores are produced, then investigate how temperature scaling should be calibrated for this CNN. Done when the scaled logits yield more realistic confidence scores; the issue does not name a test or explain how to evaluate calibration.

Written by the indexing model from the issue text.

Description

enhancement

The softmax outputs of our current CNN can sometimes be overconfident (e.g. 99% confident in a neutral face when it's slightly ambiguous). We should implement a temperature scaling parameter on the logits before applying softmax to give more calibrated, realistic confidence scores.

Where to look:

  • erml/detector.py (The post-processing step where softmax is applied)
Dominant language
Python
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sid-lakhani/erml

All issues in sid-lakhani/erml

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.