Matthew Ford commited on
Commit ·
719571d
1
Parent(s): c9282b0
pimt v9 require registry db for gbm reproduction
Browse filesFormer-commit-id: 3edd02fe9eadec6e08ccb553882cea26d58a6849
Former-commit-id: 6cdd7541947d4999d9e779286ad9006804a2ca06
artifacts/pimt_v9_qa.json
CHANGED
|
@@ -154,6 +154,7 @@
|
|
| 154 |
"model_version": "v9",
|
| 155 |
"n_model_ready": 170,
|
| 156 |
"n_target_rows": 206,
|
|
|
|
| 157 |
"reproduction_gate": {
|
| 158 |
"baseline": {
|
| 159 |
"mae": 0.5135367865016908,
|
|
|
|
| 154 |
"model_version": "v9",
|
| 155 |
"n_model_ready": 170,
|
| 156 |
"n_target_rows": 206,
|
| 157 |
+
"registry_db_resolved": "/home/hermes/pino/src/pino/registry.db",
|
| 158 |
"reproduction_gate": {
|
| 159 |
"baseline": {
|
| 160 |
"mae": 0.5135367865016908,
|
scripts/pimt_v9_train_publish.py
CHANGED
|
@@ -88,6 +88,9 @@ def load_payload(fetch_pubchem: bool) -> dict[str, Any]:
|
|
| 88 |
target_path = train.POUCHER_TARGET_PATH.resolve()
|
| 89 |
if not target_path.is_file():
|
| 90 |
raise FileNotFoundError(f"Target file missing; aborting instead of empty fallback: {target_path}")
|
|
|
|
|
|
|
|
|
|
| 91 |
target_rows = train.load_poucher_targets(target_path)
|
| 92 |
measured = [_finite_float(row.get("poucher_coefficient")) for row in target_rows]
|
| 93 |
measured = [value for value in measured if value is not None and value > 0]
|
|
@@ -117,6 +120,7 @@ def load_payload(fetch_pubchem: bool) -> dict[str, Any]:
|
|
| 117 |
x_full, full_names = train.design_matrix(ready, include_structural=True)
|
| 118 |
return {
|
| 119 |
"target_path": str(target_path),
|
|
|
|
| 120 |
"target_rows": len(target_rows),
|
| 121 |
"rows": ready,
|
| 122 |
"n_model_ready": n_ready,
|
|
@@ -273,6 +277,7 @@ def qa_and_train(payload: dict[str, Any], holdout_fraction: float, holdout_seed:
|
|
| 273 |
"qa": {
|
| 274 |
"model_version": MODEL_VERSION,
|
| 275 |
"target_file_resolved": payload["target_path"],
|
|
|
|
| 276 |
"n_target_rows": payload["target_rows"],
|
| 277 |
"n_model_ready": payload["n_model_ready"],
|
| 278 |
"holdout": {
|
|
|
|
| 88 |
target_path = train.POUCHER_TARGET_PATH.resolve()
|
| 89 |
if not target_path.is_file():
|
| 90 |
raise FileNotFoundError(f"Target file missing; aborting instead of empty fallback: {target_path}")
|
| 91 |
+
registry_path = Path(os.environ.get("PINO_REGISTRY_PATH", "src/pino/registry.db")).resolve()
|
| 92 |
+
if not registry_path.is_file() or registry_path.stat().st_size == 0:
|
| 93 |
+
raise FileNotFoundError(f"Registry DB missing; refusing to create an empty registry: {registry_path}")
|
| 94 |
target_rows = train.load_poucher_targets(target_path)
|
| 95 |
measured = [_finite_float(row.get("poucher_coefficient")) for row in target_rows]
|
| 96 |
measured = [value for value in measured if value is not None and value > 0]
|
|
|
|
| 120 |
x_full, full_names = train.design_matrix(ready, include_structural=True)
|
| 121 |
return {
|
| 122 |
"target_path": str(target_path),
|
| 123 |
+
"registry_path": str(registry_path),
|
| 124 |
"target_rows": len(target_rows),
|
| 125 |
"rows": ready,
|
| 126 |
"n_model_ready": n_ready,
|
|
|
|
| 277 |
"qa": {
|
| 278 |
"model_version": MODEL_VERSION,
|
| 279 |
"target_file_resolved": payload["target_path"],
|
| 280 |
+
"registry_db_resolved": payload["registry_path"],
|
| 281 |
"n_target_rows": payload["target_rows"],
|
| 282 |
"n_model_ready": payload["n_model_ready"],
|
| 283 |
"holdout": {
|