pub trait AdaptiveStrategy: Send + Sync {
// Required methods
fn adjust(
&self,
state: &GenerationState,
base: &SamplingParams,
) -> SamplingParams;
fn name(&self) -> &'static str;
}Expand description
Adaptive sampling strategy.
Required Methods§
Sourcefn adjust(
&self,
state: &GenerationState,
base: &SamplingParams,
) -> SamplingParams
fn adjust( &self, state: &GenerationState, base: &SamplingParams, ) -> SamplingParams
Given the current generation state and base params, return adjusted params.