Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions microtensor_subnet/validator/epoch.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ def score_all(
gate_ok=gate,
provenance_ok=bool(prov.get("passed")),
base=base_run,
min_items=rules.min_items,
rules=rules,
envelope_ok=envelope_ok,
)
Expand All @@ -486,7 +487,7 @@ def score_all(
)
found.append(pool_score)
if outcome.harness is not None:
found.append(score.harness_score(outcome.harness))
found.append(score.harness_score(outcome.harness, min_items=rules.min_items))
if outcome.router is not None:
found.append(
score.router_score(
Expand All @@ -502,11 +503,14 @@ def score_all(
if outcome.escalation is not None:
found.append(
score.escalation_score(
outcome.escalation, runner.reference_escalation, seed=context.seed
outcome.escalation,
runner.reference_escalation,
seed=context.seed,
min_items=rules.min_items,
)
)
if outcome.system is not None:
found.append(score.system_score(outcome.system))
found.append(score.system_score(outcome.system, min_items=rules.min_items))
scores[hotkey] = found
return scores

Expand Down
2 changes: 2 additions & 0 deletions microtensor_subnet/validator/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Rules:
burn_empty_pools: bool = False
router_kind: str = FLOORS_BRIER
router_latency_ms: float = ROUTER_LATENCY_GATE_MS
min_items: int = MIN_ITEMS

@classmethod
def from_definition(cls, definition: Mapping[str, Any]) -> Rules:
Expand Down Expand Up @@ -97,6 +98,7 @@ def from_definition(cls, definition: Mapping[str, Any]) -> Rules:
burn_empty_pools=block.get("empty_pools") == "burn",
router_kind=str(block.get("router") or FLOORS_BRIER),
router_latency_ms=float(router.get("latency_gate_ms") or ROUTER_LATENCY_GATE_MS),
min_items=int(block.get("min_items") or MIN_ITEMS),
)


Expand Down
Loading