Skip to content
Back to skills

Softmax Confidence Scoring

ASecurity

Compute maximum softmax probability detector scores from logits or probabilities for misclassification and OOD detection.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
testingpythongit

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill softmax_confidence_scoring --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Softmax Confidence Scoring?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Softmax Confidence Scoring
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-softmax-confidence-scoring/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-softmax-confidence-scoring)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: softmax_confidence_scoring
description: Compute maximum softmax probability detector scores from logits or probabilities for misclassification and OOD detection.
---

# Maximum Softmax Probability Scoring

Use this skill when a recovery or evaluation task needs the Hendrycks-Gimpel baseline score: the predicted class probability from a classifier softmax distribution. Do not use it as a calibration method or as evidence that a probability equals true confidence.

## Inputs
- A JSON list of numeric vectors, either logits or already-normalized probability vectors.
- Optional mode: `logits`, `probabilities`, or `auto`.

## Outputs
- One record per example with `predicted_class` and `msp`.
- Optional aggregate summary with mean MSP.

## Workflow
1. Validate that every row is non-empty and finite.
2. Convert logits with a max-subtracted stable softmax.
3. In `auto` mode, accept rows as probabilities only when non-negative and summing to one within tolerance.
4. Return the argmax class and its probability.
5. Pass these MSP values to a detection metric skill rather than thresholding by hand unless a threshold is explicitly requested.

## Validation
Run `python tests/test_msp.py` or validate the full skill tree with `validate_skill_tree.py --run-tests`.

## Limitations
This skill does not train classifiers, load image datasets, or estimate calibrated uncertainty. It only implements the paper baseline scoring primitive.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…