WRITE · TRACE · UNDERSTAND
Audit a clipped inverse-propensity estimate
Events are [reward, logging_probability, target_probability].
Read lesson: Audit a clipped inverse-propensity estimate →
Your experiment
Events are [reward, logging_probability, target_probability]. Return value=mean(reward*min(target/logging,clip)), mean_weight, and ESS=(sum weights)**2/sum squared weights (zero if all weights vanish). This is clipped IPS, not self-normalized IPS. Require nonempty finite events, logging probabilities in (0,1], target probabilities in [0,1], and positive finite clip.
Python runs in your browser. Your draft stays on this device.
What to look for
Review propensity provenance, exploration support, clipping bias and the independent unit. A large ESS does not establish unbiased logged data.
Watch your code work
Ready to experimentWrite a solution or load the worked answer, then choose Trace & check.
Step through arrays, variables and training curves produced by your own Python.
