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
- OlfactoryEmbeddingEngine now queries AromaRegistry first, computes missing 3D
features once, and writes them back to the SQLite DB permanently.
- Empty/placeholder SMILES short-circuit to zero fallback without invoking RDKit.
- Mute RDKit C++ logger to eliminate warning spam during training.
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.