TrialSizing

Connects the planner's trial count to a failure rate, an alpha and a budget.

Functions

Link copied to clipboard
fun counts(runs: List<Run>): Pair<Int, Int>

Failures and completed runs: cancelled and unknown runs say nothing about the rate.

Link copied to clipboard
fun fromRate(rate: Long, budget: Budget, trialMinutes: Long, alpha: Long = PlanWeights.ALPHA, power: Long = PlanWeights.POWER): Sizing

rate, alpha and power are micro-units; trialMinutes is one trial's wall time.

Link copied to clipboard
fun fromRuns(runs: List<Run>, budget: Budget, trialMinutes: Long, alpha: Long = PlanWeights.ALPHA, power: Long = PlanWeights.POWER): Sizing

The rate is the planner's Laplace estimate over the completed runs.