Release algorithm evolution selector v0.1
Browse files- LICENSE +3 -0
- README.md +13 -0
- metrics.json +17 -0
- model.json +26 -0
- predictor.py +22 -0
- provenance.json +10 -0
LICENSE
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Creative Commons Attribution 4.0 International (CC BY 4.0)
|
| 2 |
+
|
| 3 |
+
Copyright 2026 Douvras Labs.
|
README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
tags:
|
| 4 |
+
- synthetic
|
| 5 |
+
- optimization
|
| 6 |
+
- algorithm-selection
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# Douvras Algorithm Evolution Selector v0.1
|
| 10 |
+
|
| 11 |
+
Transparent baseline that rejects incorrect candidates and minimizes the
|
| 12 |
+
synthetic latency-memory objective among valid candidates. It has no neural
|
| 13 |
+
weights and requires real benchmarking before operational use.
|
metrics.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"test": {
|
| 3 |
+
"invalid_candidates_rejected": true,
|
| 4 |
+
"top1_valid_selection": 1.0,
|
| 5 |
+
"workloads": 2
|
| 6 |
+
},
|
| 7 |
+
"train": {
|
| 8 |
+
"invalid_candidates_rejected": true,
|
| 9 |
+
"top1_valid_selection": 1.0,
|
| 10 |
+
"workloads": 8
|
| 11 |
+
},
|
| 12 |
+
"validation": {
|
| 13 |
+
"invalid_candidates_rejected": true,
|
| 14 |
+
"top1_valid_selection": 1.0,
|
| 15 |
+
"workloads": 2
|
| 16 |
+
}
|
| 17 |
+
}
|
model.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"algorithm": "deterministic correctness gate plus latency-memory objective",
|
| 3 |
+
"human_review_required": true,
|
| 4 |
+
"metrics": {
|
| 5 |
+
"test": {
|
| 6 |
+
"invalid_candidates_rejected": true,
|
| 7 |
+
"top1_valid_selection": 1.0,
|
| 8 |
+
"workloads": 2
|
| 9 |
+
},
|
| 10 |
+
"train": {
|
| 11 |
+
"invalid_candidates_rejected": true,
|
| 12 |
+
"top1_valid_selection": 1.0,
|
| 13 |
+
"workloads": 8
|
| 14 |
+
},
|
| 15 |
+
"validation": {
|
| 16 |
+
"invalid_candidates_rejected": true,
|
| 17 |
+
"top1_valid_selection": 1.0,
|
| 18 |
+
"workloads": 2
|
| 19 |
+
}
|
| 20 |
+
},
|
| 21 |
+
"model_type": "algorithm_evolution_selector",
|
| 22 |
+
"neural_weights": false,
|
| 23 |
+
"real_benchmark_required": true,
|
| 24 |
+
"synthetic_only": true,
|
| 25 |
+
"training_data": "douvras-algorithm-evolution-benchmark train split only"
|
| 26 |
+
}
|
predictor.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import argparse
|
| 4 |
+
import json
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
def select(rows: list[dict]) -> dict:
|
| 9 |
+
valid = [r for r in rows if r["correctness_pass"]]
|
| 10 |
+
chosen = min(valid, key=lambda r: (r["latency_ms"] + 0.1 * r["memory_mb"], r["candidate_id"]))
|
| 11 |
+
return {"candidate_id": chosen["candidate_id"], "objective_score": round(chosen["latency_ms"] + 0.1 * chosen["memory_mb"], 6), "human_review_required": True}
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def main() -> None:
|
| 15 |
+
parser = argparse.ArgumentParser()
|
| 16 |
+
parser.add_argument("records_json", type=Path)
|
| 17 |
+
args = parser.parse_args()
|
| 18 |
+
print(json.dumps(select(json.loads(args.records_json.read_text(encoding="utf-8"))), ensure_ascii=False, indent=2))
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
if __name__ == "__main__":
|
| 22 |
+
main()
|
provenance.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "dougdotcon/douvras-algorithm-evolution-selector",
|
| 3 |
+
"version": "0.1.0",
|
| 4 |
+
"algorithm": "deterministic correctness gate plus latency-memory objective",
|
| 5 |
+
"training_dataset": "dougdotcon/douvras-algorithm-evolution-benchmark",
|
| 6 |
+
"synthetic_only": true,
|
| 7 |
+
"neural_weights": false,
|
| 8 |
+
"real_benchmark_required": true,
|
| 9 |
+
"limitations": ["synthetic metrics", "no hardware benchmark", "human review required"]
|
| 10 |
+
}
|