Streaming Entropy (numerical stability + online accumulation)

Medium · ML Coding · 60 min

Compute numerically stable softmax Shannon entropy from logits via log-sum-exp, then extend it to single-pass O(1)-state streaming blocks with dynamic max rescaling, shard merging, and varentropy.

This is a Pro problem. Pro unlocks the full prompt, a step-by-step walkthrough, a reference solution and tests you can run.

See Pro plans

More OpenAI problems