syne_tune.callbacks.hyperband_remove_checkpoints_score module
- syne_tune.callbacks.hyperband_remove_checkpoints_score.compute_probabilities_of_getting_resumed(ranks, rung_lens, prom_quants, p_vals, time_ratio, approx_steps)[source]
Computes an approximation to the probability of getting resumed under our independence assumptions. This approximation improves with larger
approx_steps
, but its cost scales cubically in this number.- Parameters:
ranks (
ndarray
) – Ranks \(k\), starting from 1 (smaller is better)rung_lens (
ndarray
) – Rung lengths \(n_r\)prom_quants (
ndarray
) – Promotion quantiles \(\alpha_r\)p_vals (
ndarray
) – Probabilities \(p_r\)time_ratio (
float
) – Ratio \(\beta\) between time left and time spentapprox_steps (
int
) – Number of approximation steps, see above
- Return type:
ndarray
- Returns:
Approximations of probability to get resumed