Skip to main content

Module sample

Module sample 

Source
Expand description

Successor sampling for a differential sample: Core’s successors of a sample of states, for comparison with an independent evaluator.

A run with Config::sample keeps a uniform sample of the states it expanded (reservoir sampling, seeded, so the same seed picks the same states at any worker count), retaining each source’s actual evaluation level. successors then regenerates each sampled state’s successors, action by action, for the caller to compare with the dive-eval evaluator’s.

Structs§

Sample
What to sample.
SampledState
An expanded state and the evaluation level used for its successors.

Functions§

successors
The successors of s0 under each action of Plan::next, in order, evaluated at the sampled source state’s actual level.

Type Aliases§

ActionSuccessors
The successors of one state by one action: every emission in order, as persistent handles (empty handles are unassigned variables), or the core’s message for the evaluation error that ended the action.