Skip to content

eval::metric_store::EvalMetrics

More...

Public Functions

Name
Dict[str, Any] to_dict(self self)

Public Attributes

Name
str niche
str timestamp_utc
int num_samples
float perplexity
float bleu_score
float rouge_l
float latency_ms_mean
float latency_ms_p95
Dict gates_passed
str version

Detailed Description

class eval::metric_store::EvalMetrics;
Single-run evaluation metrics for a specialist (Phase 2: D-14).

All fields are required for schema validation.  ``gates_passed`` maps
gate name -> ``{"passed": bool, "threshold": float, "value": float}``.

Public Functions Documentation

function to_dict

Dict[str, Any] to_dict(
    self self
)
Return dict suitable for JSON serialization (alias for asdict).```


## Public Attributes Documentation

### variable niche

```python
static str niche;

variable timestamp_utc

static str timestamp_utc;

variable num_samples

static int num_samples;

variable perplexity

static float perplexity;

variable bleu_score

static float bleu_score;

variable rouge_l

static float rouge_l;

variable latency_ms_mean

static float latency_ms_mean;

variable latency_ms_p95

static float latency_ms_p95;

variable gates_passed

static Dict gates_passed [str, Dict[str, Any]];

variable version

static str version =  "1.0";

Updated on 2026-10-09 at 03:59:43 +0000