Adaptive Computation Time (Graves, 2016) lets a recurrent network decide how many steps to think before answering. At each step it accumulates a halting probability, and the last step gets the remainder so the weights sum to one.
Implement act_remainder(halts), the weight left for the final step.
Subtract the probabilities of all steps except the last from one.
No results yet
Run your code to check it against the examples, or submit to run every test.