How is the iteration threshold defined and when does the cross-entropy loop stop?
The iteration threshold is defined as the empirical -quantile of the current batch of samples drawn from the proposal distribution. The loop stops when this threshold is greater than or equal to the target rare-event threshold .
Conditions
- Samples are drawn from the current proposal distribution.
- The elite fraction parameter is set to 0.05.
- The target threshold is .
Reasoning, step by step
- Draw a batch of samples from the current proposal.
- Compute the empirical 95% quantile of these samples to get .
- Compare to the target threshold .
- If , stop the iteration.
Example
The code shows `gamma_i = np.quantile(Xs, 1-p)` and `if gamma_i >= gamma: break` with ``. The speaker says the threshold for this iteration is set to be the 95% threshold of the X samples, and if this is above the overall goal of gamma, they stop iterating.
Common misconceptions
- Assuming is a fixed constant throughout the iterations.
- Thinking the loop stops when the sample mean exceeds .
Watch the explanation
Explore next
Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.