Skip to main content

ValidationStrategy

Trait ValidationStrategy 

Source
pub trait ValidationStrategy: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn evaluate(
        &self,
        baseline: f64,
        current: f64,
        sample_count: usize,
    ) -> ValidationResult;
}
Expand description

検証戦略 trait

検証基準を定義し、baseline と current を比較して判定を行う。

Required Methods§

Source

fn name(&self) -> &str

戦略名

Source

fn evaluate( &self, baseline: f64, current: f64, sample_count: usize, ) -> ValidationResult

判定を実行

§Arguments
  • baseline - ベースライン成績 (0.0-1.0)
  • current - 検証時成績 (0.0-1.0)
  • sample_count - 検証サンプル数

Implementors§