Third representation arm. structural_source='pom_alltags' uses genuine 256-dim
OpenPOM input (same as openpom_256 arm) but a 575-dim molequles all-tags objective
target instead of the 138-dim Pyrfume pyramid — isolates target-vocabulary as the
single variable against the OpenPOM arm.
- pimt_model: FragranceTrajectoryDataset gains objective_dim (138|575); selects
alltags_targets when objective_dim=575; objective_targets_to_pyramid is now
width-agnostic (138 or 575) instead of hard-rejecting non-138.
- train.py: --structural-source gains pom_alltags; threads objective_dim through
dataset construction + PIMTHeads; collate reads target width from the batch.
- Smoke-tested all three arms end-to-end on corrected v10_alltags dataset:
morgan (151->138), openpom_256 (269->138), pom_alltags (269->575); all train.
Former-commit-id: ccccfa67d1f3e5680360c153a6ba42024f8607c0
Former-commit-id: 8b4dcf6421418e22b29e80d2e9acb40bd2748273
feat: wire genuine 256-dim OpenPOM into training (--structural-source)
Matthew Ford
f4f9dd3
Adds a structural_source toggle to OlfactoryEmbeddingEngine and threads it
through FragranceTrajectoryDataset -> train.py CLI (--structural-source
morgan|openpom_256). Genuine OpenPOM v1.0.0 ensemble (256-dim, 10-model mean)
is loaded from artifacts/pom and takes priority over the registry's 138-dim
Morgan fallback. CAS absent from the genuine set get a real Morgan block
zero-padded to 256 so the combined input dim stays constant (269 vs 151).
Model input_proj and the collate pad dim now derive from the actual embedding
dim rather than a hardcoded 151. Both arms smoke-test end-to-end:
morgan val_total=0.6349 (dim 151), openpom_256 val_total=0.6397 (dim 269).
POM asset load fails closed if absent (no silent Morgan substitution).
Former-commit-id: 10a28c38b626dc97f610c0eb98798b4772fb17e3
Former-commit-id: c57e69d542d2e258990391b3f2bd2e12d37e823f
fix: normalize objective targets for pyramid training
- FragranceTrajectoryDataset now prefers record['objective_targets'] and
record['psychometric_targets'] when present.
- Verifier now keys trajectory step dicts by CAS, matching the dataset lookup.
- Add scripts/inspect_thermo_env.py to audit registry/VLE interfaces.
feat(structure,thermo): 3D shape + natural oil reconstruction, 145-D input
- Add src/pino/thermo/geometry.py with RDKit ETKDG/MMFF94 3D descriptors.
- Add src/pino/thermo/naturals.py with constituent profiles for 32 natural oils.
- Extend AromaRegistry with openpom_embedding and shape_3d_features columns.
- Add scripts/cache_registry_embeddings.py for two-pass cache generation.
- Scale structural input to 145-D (138 OpenPOM + 7 shape) across pimt_model,
train, evaluate, train_hf, predict, inference. Keep objective output 138-D.
- Normalize NATURAL:* identifiers to bare CAS for registry lookups.
feat(pimt_model): expose tokens/states/mask forward and emit genre labels
Refactor forward() to accept separate tokens, states and padding mask.
Emit genre_label and genre from dataset items for stratification and
contrastive losses. Keep HF-compatible labels path for trainer reuse.
feat(pino): literature seed integration, stratified dataset split, registry enrichment, and Space sync
- Add literature_formulas.json blueprint with seeds and holdouts
- Integrate literature seeds into FormulaGenerator with Gaussian perturbation
- Flatten genre key in dataset records for stratified splitting
- Add upload_data.py for deterministic 80/20 Hub push
- Enrich registry: add missing single-chemical CAS and natural placeholders
- Add inference stub and verify_benchmarks.py for gold-standard validation
- Add sync_space.py to push train_hf.py to pino-pimt-training Space
- Update .gitignore to ignore logs and registry.db
fix: skip non-formulation records in dataset loader; keep feedback separate from dataset JSONL