Skip to main content

entrenar/eval/generative/
mod.rs

1//! Generative AI evaluation metrics
2//!
3//! Metrics for evaluating generative models across domains:
4//! - **ASR**: Word Error Rate (WER), Real-Time Factor inverse (RTFx)
5//! - **Text Generation**: BLEU, ROUGE (1/2/L), Perplexity
6//! - **Code Generation**: pass@k
7//! - **Retrieval**: NDCG@k
8
9pub mod asr;
10pub mod code;
11pub mod retrieval;
12pub mod text_gen;
13
14#[cfg(test)]
15mod tests;
16
17#[cfg(test)]
18mod falsification_asr_bleu;
19#[cfg(test)]
20mod falsification_passk_ndcg;
21#[cfg(test)]
22mod falsification_rouge_ppl;
23
24// Re-exports
25pub use asr::{real_time_factor_inverse, word_error_rate};
26pub use code::pass_at_k;
27pub use retrieval::ndcg_at_k;
28pub use text_gen::{bleu_score, perplexity, rouge_l, rouge_n};