Sample the steps that actually carry loss instead of drawing uniformly.
Examples
importance_weights(step_losses = c(0.9, 0.5, 0.2, 0.1, 0.05))$weights
#> [1] 0.3336740 0.2568082 0.1741145 0.1324369 0.1029664
Sample the steps that actually carry loss instead of drawing uniformly.
importance_weights(step_losses = c(0.9, 0.5, 0.2, 0.1, 0.05))$weights
#> [1] 0.3336740 0.2568082 0.1741145 0.1324369 0.1029664