Skip to content

Add problem 189: Tournament Odds (Softmax with Temperature) - #601

Open
TheExterminator67 wants to merge 2 commits into
Open-Deep-ML:mainfrom
TheExterminator67:main
Open

TheExterminator67 wants to merge 2 commits into
Open-Deep-ML:mainfrom
TheExterminator67:main

Conversation

@TheExterminator67

@TheExterminator67 TheExterminator67 commented Dec 4, 2026 •

Copy link
Copy Markdown

New problem: Tournament Odds (Softmax with Temperature)

Difficulty: Easy · Category: Deep Learning

A story-themed easy problem: given fighters' power levels and a tournament "chaos" level, return each fighter's probability of winning using softmax with temperature (T = chaos). It teaches what temperature does (sharp vs. flat distributions, the same knob used for sampling in language models) and requires the numerically stable form (subtract the max) so large power levels don't overflow.

Also submitted through the deep-ml.com submit form.

Files

questions/189_tournament-odds-softmax-with-temperature/

  • meta.json, description.md, learn.md, example.json, tests.json, solution.py, starter_code.py

Checks

  • python utils/build_bundle.py && python utils/validate_questions.py passes
  • Reference solution passes all 6 tests, including an overflow case ([1000, 0], chaos 1) and chaos < 1
  • I used ID 189 as the next free number; happy to renumber if needed

This branch has not been deployed

No deployments
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.

1 participant