Spaces:
Running
Running
File size: 1,164 Bytes
b41bee3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | """Auris coherence from the brain proof.
The earlier labelled hit-rate draw used thresholds that are not in
``read_auris_nodes``. That draw is not the measurement.
"""
from __future__ import annotations
from pathlib import Path
from typing import Any
def evaluate_auris_nodes(root: Path | None = None) -> dict[str, Any]:
from aureon.evaluation.brain_proof import evaluate_brain
return evaluate_brain(root)["auris"]
def render_auris_markdown(report: dict[str, Any]) -> str:
held = ", ".join(report.get("hold_nodes") or []) or "none"
trade = report.get("trade_readiness") or {}
lines = [
"# Auris coherence",
"",
f"Source `{report.get('source')}`. {report.get('market_data_note', '')}",
f"Coherence `{report.get('coherence')}`. Status `{report.get('coherence_status')}`.",
f"Nodes without a reading when the four market fields are present as 0: {held}.",
f"Trade readiness: **{trade.get('verdict')}**. {trade.get('reason', '')}",
"This is the method's coherence, not a hit rate and not a trade result.",
"",
]
return "\n".join(lines)
|