round-7 follow-through: disjoint_256 arm (src/pino/train.py)
Browse files- src/pino/train.py +2 -2
src/pino/train.py
CHANGED
|
@@ -301,7 +301,7 @@ def main():
|
|
| 301 |
parser.add_argument("--log-dir", default="runs")
|
| 302 |
parser.add_argument("--checkpoint-name", default="pimt_v9.pt", help="Filename for the best checkpoint")
|
| 303 |
parser.add_argument("--train-ratio", type=float, default=DEFAULT_TRAIN_RATIO, help="Molecule-disjoint train molecule ratio; default keeps a 15% molecule holdout")
|
| 304 |
-
parser.add_argument("--structural-source", choices=["morgan", "morgan_2048_rp", "openpom_256", "pom_alltags"], default="morgan", help="Structural embedding block + objective target: 'morgan' (138-dim Morgan, input 151, 138-dim pyramid) | 'morgan_2048_rp' (2048-bit Morgan token randomly projected to 269 for input-parameter parity with the OpenPOM arm, 138-dim pyramid) | 'openpom_256' (genuine 256-dim OpenPOM, input 269, 138-dim pyramid) | 'pom_alltags' (genuine 256-dim OpenPOM, input 269, 575-dim molequles all-tags objective)")
|
| 305 |
parser.add_argument("--smoke-test", action="store_true", help="Run lightweight CPU smoke test")
|
| 306 |
parser.add_argument("--use-gamma", action="store_true", help="Add the UNIFAC blend-interaction (gamma) 3rd physics channel; requires a gamma-augmented dataset (physics_gamma field)")
|
| 307 |
parser.add_argument("--split-strategy", choices=["molecule", "formula"], default="molecule", help="molecule = strict molecule-disjoint holdout (default, used for frozen-task headline results); formula = random formula-level holdout (E1 physics-gamma substantivity experiment; discloses molecule leakage for measured-Poucher eval power)")
|
|
@@ -330,7 +330,7 @@ def main():
|
|
| 330 |
logger.info("Device: %s", device)
|
| 331 |
|
| 332 |
logger.info("Structural source: %s", args.structural_source)
|
| 333 |
-
use_pom = args.structural_source in ("openpom_256", "pom_alltags")
|
| 334 |
embedding_dim = COMBINED_DIM_REAL_POM if (use_pom or args.structural_source == "morgan_2048_rp") else DEFAULT_EMBEDDING_DIM
|
| 335 |
objective_dim = 575 if args.structural_source == "pom_alltags" else 138
|
| 336 |
# engine only knows the two structural blocks; the tag target is selected in the dataset via objective_dim
|
|
|
|
| 301 |
parser.add_argument("--log-dir", default="runs")
|
| 302 |
parser.add_argument("--checkpoint-name", default="pimt_v9.pt", help="Filename for the best checkpoint")
|
| 303 |
parser.add_argument("--train-ratio", type=float, default=DEFAULT_TRAIN_RATIO, help="Molecule-disjoint train molecule ratio; default keeps a 15% molecule holdout")
|
| 304 |
+
parser.add_argument("--structural-source", choices=["morgan", "morgan_2048_rp", "openpom_256", "pom_alltags", "disjoint_256"], default="morgan", help="Structural embedding block + objective target: 'morgan' (138-dim Morgan, input 151, 138-dim pyramid) | 'morgan_2048_rp' (2048-bit Morgan token randomly projected to 269 for input-parameter parity with the OpenPOM arm, 138-dim pyramid) | 'openpom_256' (genuine 256-dim OpenPOM, input 269, 138-dim pyramid) | 'disjoint_256' (256-dim MPNN encoder retrained on the benchmark-disjoint corpus, input 269, 138-dim pyramid — leakage-free OpenPOM-style arm) | 'pom_alltags' (genuine 256-dim OpenPOM, input 269, 575-dim molequles all-tags objective)")
|
| 305 |
parser.add_argument("--smoke-test", action="store_true", help="Run lightweight CPU smoke test")
|
| 306 |
parser.add_argument("--use-gamma", action="store_true", help="Add the UNIFAC blend-interaction (gamma) 3rd physics channel; requires a gamma-augmented dataset (physics_gamma field)")
|
| 307 |
parser.add_argument("--split-strategy", choices=["molecule", "formula"], default="molecule", help="molecule = strict molecule-disjoint holdout (default, used for frozen-task headline results); formula = random formula-level holdout (E1 physics-gamma substantivity experiment; discloses molecule leakage for measured-Poucher eval power)")
|
|
|
|
| 330 |
logger.info("Device: %s", device)
|
| 331 |
|
| 332 |
logger.info("Structural source: %s", args.structural_source)
|
| 333 |
+
use_pom = args.structural_source in ("openpom_256", "pom_alltags", "disjoint_256")
|
| 334 |
embedding_dim = COMBINED_DIM_REAL_POM if (use_pom or args.structural_source == "morgan_2048_rp") else DEFAULT_EMBEDDING_DIM
|
| 335 |
objective_dim = 575 if args.structural_source == "pom_alltags" else 138
|
| 336 |
# engine only knows the two structural blocks; the tag target is selected in the dataset via objective_dim
|