The paper prunes iteratively: train, prune a fraction of the remaining weights, rewind, and repeat. Pruning 20 percent per round for several rounds keeps far fewer weights than one large cut, and each round compounds the last.
Implement remaining_fraction(p, rounds), returning (1 - p) ** rounds.
p is the per-round prune fraction.Raise the per-round keep fraction to the number of rounds.
No results yet
Run your code to check it against the examples, or submit to run every test.