Skip to content

Commit 81c6b48

Browse files
fix: calibrate evaluator verdict rubric and baseline context (#186)
* fix: calibrate evaluation verdict rubric and baseline context * chore: bump version to 1.4.2
1 parent d0d301e commit 81c6b48

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

plexe/agents/model_evaluator.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ def run(
260260
),
261261
"baseline_performance": self.context.baseline_performance, # Validation set performance (for reference)
262262
"baseline_predictor": self.context.baseline_predictor, # For re-evaluation on test set
263+
"core_metrics_report": self.context.scratch.get(
264+
"_core_metrics_report"
265+
), # Model's test metrics from Phase 1
263266
}
264267
synthesis_args = {**additional_args, **baseline_context}
265268

@@ -469,6 +472,11 @@ def _get_phase_synthesis_prompt(task: str, explainability_required: bool) -> str
469472
f"2. Synthesize prioritized recommendations (HIGH/MEDIUM/LOW)\\n"
470473
f"3. Write executive summary (2-3 sentences)\\n"
471474
f"4. Determine deployment readiness\\n\\n"
475+
f"Verdict rubric:\\n"
476+
f"- FAIL: Model is broken, materially worse than heuristic baseline, or has catastrophic/high-severity issues.\\n"
477+
f"- CONDITIONAL_PASS: Model is roughly on par with baseline, or is better than baseline but has material unresolved issues.\\n"
478+
f"- PASS: Model is clearly better than baseline, has no catastrophic/high-severity issues, and is generally robust.\\n"
479+
f"- Do not assign CONDITIONAL_PASS only because minor improvement opportunities exist.\\n\\n"
472480
f"Register using:\\n"
473481
f"register_final_evaluation_report(\\n"
474482
f" verdict='PASS'|'CONDITIONAL_PASS'|'FAIL',\\n"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "plexe"
3-
version = "1.4.1"
3+
version = "1.4.2"
44
description = "An agentic framework for building ML models from natural language"
55
authors = [
66
"Marcello De Bernardi <mdebernardi@plexe.ai>",

0 commit comments

Comments
 (0)