Core
Numerical Stability
When you implement softmax, cross-entropy, or a running average by hand, the naive formula overflows or loses precision on real inputs. The fixes are a small, reusable toolkit: subtract the max before exponentiating, work in log space with log-sum-exp, and accumulate carefully. ML-adjacent coding screens lean on this, because the candidate who writes exp of a large logit and gets inf has shipped a silent bug.
a free account unlocks the core curriculum tier · no card
Related concepts
Practise this in questions
Coding & DSAImplement scaled dot-product attention (the forward pass). →hard · PremiumCoding & DSAImplement top-p (nucleus) sampling from a list of logits in pure Python. →medium · PremiumCoding & DSACompute cross-entropy loss manually from logits and a target index, no framework. →medium · PremiumCoding & DSAGiven a biased coin, produce a fair coin flip →medium · Premium
