Contents

SampleGenerator.SamplingStrategy.random(retries:)

A strategy that randomly picks a subset of samples each time a model repeats inference.

Declaration

case random(retries: Int = 5)

Parameters

  • retries:

    The maximum number of retries when the model repeats an inference.

Mentioned in

Discussion

When the model repeats an inference, this strategy retries up to retries times, selecting a random subset to steer the model toward a new inference.

See Also

Strategies