TGViewer
Data eXplore : Data Science, ML, Big Data, LLMs and AI Security Data eXplore : Data Science, ML, Big Data, LLMs and AI Security @dataxplore · 578 subscribers
Post #2142 266
In an interview about ML engineering at Apple, question is asked:

There are two models with an accuracy of 88%.

- Model A has a confidence of 89%
- Model B has a confidence of 99%

Which would you choose?

The ANSWER "any of them, they have the same accuracy" ends the interview.

➡️ what's missing?

Modern neural networks often mislead.

They give an overconfidence in predictions.

For example, in one experiment on the CIFAR-100 dataset, LeNet and ResNet were compared.

LeNet:

- accuracy ≈ 0.55
- average confidence ≈ 0.54

ResNet:

- accuracy ≈ 0.7
- average confidence ≈ 0.9

Despite the higher accuracy, ResNet is overconfident in its predictions. The model believes it's right with a 90% probability, but the actual accuracy is about 70%.

Calibration solves this problem.

A model is considered calibrated if the probabilities of predictions correspond to the real outcomes.

For example: if the model gives a probability of 70%, then in about 70% of cases, the event should actually occur.

This is important because such models are used in decision-making.

A poorly calibrated but confident model can give critically misleading results.

Example: a state hospital plans expensive medical tests.

A realistic assessment of probabilities helps optimally allocate the budget and make decisions.

If the model is not calibrated, it will give overly confident predictions.

Reliability diagrams are used to visually check calibration.

They show the dependence of the actual accuracy on the predicted confidence (softmax values).

An ideally calibrated model gives a line y = x.

They also use a scalar metric - expected calibration error (ECE).

One of its approximations is to divide the predictions into intervals and average the difference between accuracy and confidence across these bins.

The main methods of model calibration:

For binary classification:

- histogram binning
- isotonic regression
- Platt scaling

For multi-class classification:

- binning
- matrix and vector scaling


••••••••••••••••••••••••••••••••••••••
🤖 Data & ML |
@DataXplore
More from @dataxplore
  1. Sep 18, 2026Am going to announce something big (for me, it's really big) on October 11, 2026.
  2. Sep 14, 2026Post #2188
  3. Aug 31, 2026I joined a Russian community on Telegram. They share some Russian startup and technology u…
  4. Aug 22, 2026Post #2185
  5. Aug 21, 2026Deep systemic analysis of AI constraints from context to internal weight editing. 📂 PDF #…
  6. Aug 17, 2026Adaptive Gradient Thresholding Why Fixed Gradient Clipping Kills Deep RecSys When Feedback…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →