fix: pre-existing test failures — draft_engine None-MW crash + stale gate test
Matthew Ford
2e41740
draft_engine._load_compounds: skip aroma_chemicals rows with NULL molecular_weight
(they cannot be tier-classified and crashed _classify_tiers with None<=int). Fixes
all 5 test_synthetic failures.
test_representation_validation: the old test asserted the gate FAILS against live
repo state, which broke once the gate legitimately went READY. Rewritten to (a)
exercise the failure path hermetically by running the real gate logic against an
empty tmp dir (asserts rc=2 / DO_NOT_TRAIN / non-empty blockers), and (b) assert
the live repo gate IS ready with all five checks passing (regression guard).
Full suite: 112 passed, 4 skipped, 0 failed (previously 6 failed).
Former-commit-id: 671bc1d1175a6ede27ee0bb2f7563d836cd42dc1
Former-commit-id: 9d4a91c3b761ab4f2808fb0a91c67fc8eda63146
Trains/reuses both A/B arms and emits one bundle aggregating every paper stat:
final val_total, full tensorboard train/val curves, frozen-benchmark readout per
arm, checkpoint SHA256 + input dims, dataset SHA, run provenance. Reuse-first:
if pimt_ab_{arm}_gpu.pt is already published by the running A/B job, download +
evaluate it instead of retraining; retrain only when a checkpoint is absent.
Uploads paper_stats_bundle.json + checkpoints to the A/B model repo.
Former-commit-id: 219cf88c858f52969ce1c71d7ae4590ac918e0b2
Former-commit-id: 501c5dca64538483829409cca8d82e2d5980fa8a
feat: paper figures from existing artifacts (ablation bars, POM UMAP, trajectory)
Matthew Ford
043e29f
scripts/generate_paper_figures.py renders three PDFs from on-disk artifacts only:
(a) fig_ablation_bars.pdf — frozen representation ablation, 3 tasks x 3 reps,
grouped bars with 95% CI whiskers (per-fold spread), n annotated.
(b) fig_pom_umap.pdf — UMAP of 711 genuine OpenPOM embeddings colored by odor
family (554/711 labeled via chemical_family_classification.json).
(c) fig_trajectory_pred_vs_target.pdf — objective-head predicted vs target odor
pyramid for a held-out OpenPOM-arm sample, all 3 tiers; targets are
structurally sparse (base tier 20-active multi-hot, top/middle ~0), shown
honestly with active-count annotations.
Local-only: no HF, no gate/manifest changes. Visual QA via PDF->PNG render.
Former-commit-id: 82552dd55bdc5f77ab7ae3ef6c39c3746dffa38e
Former-commit-id: 13cd860666d00a25d8312c2ae1de8781bc282b45
feat: paper_data.yaml exporter for autopaper (49 data_macros)
Matthew Ford
bf801fa
scripts/export_paper_data.py reads the frozen representation ablation, the
v10_line_drawn substantivity GBM metrics, and the two-arm A/B frozen readout,
plus dataset curation stats, and emits a canonical artifacts/paper_data.yaml.
Keys are lowerCamel letters-only per the autopaper build_paper.py contract
(builder prefixes D, digits->words): \DThreshPomRho, \DSubstPomRho,
\DGbmLockedRho/\DGbmLockedRtwo, \DAbPomTripletAcc, honest negatives, etc.
Verified: YAML parses, all 49 keys satisfy the letters-only constraint, and
macro names round-trip through the real autopaper builder functions.
Former-commit-id: 8388847d54026f0939d5bafd38cf2c0ad52019ff
Former-commit-id: 5fed2c7fec5bef58913718991ddd7289305fbe4a
training_readiness.json reflects the READY_FOR_TRAINING gate; 106 literature
repair pairs frozen under data/benchmarks/repair_pairs; source_population AI
review retained for provenance. artifacts/pom/ intentionally left untracked
locally (already published to HF source repo).
Former-commit-id: fc68308b2a81ec858933c05976c348f63fce13b2
Former-commit-id: f64943bd1ad4f702b5349e2c5cd2825aa80aee9f
Scripts implementing the v11.6 repair chain and corrected-baseline recompute, the
independent-candidate and training-dataset preparation, POM embedding computation,
source-population audit, and frozen genre-output diagnosis. New pytest coverage:
material data integrity, independent-candidate prep, training-dataset prep, source
population.
Former-commit-id: 176362fba0b6e86a533c830ae42bda0f05c91935
Former-commit-id: 3f0e963b225c2fe6d644601e7a427319bdac3b4a
chore: v11.6 + v11.5 + candidate-20260716a artifact reports and manifests
feat: low-evidence gating in substitution_v11 + wisemoor description provenance
Matthew Ford
cc86172
substitution_v11: stop manufacturing neutral 0.5 for unobserved features. Missing
features now yield None (evidence_coverage=0), a row needs >=2 mutually-observed
scoring components to count as a trustworthy retrieval, an answer resolving to the
target is excluded as invalid (not a miss), and unimplemented modes
(cost_match/regulatory_match without supporting data) are reported unsupported.
Wisemoor converters preserve source-observed description text as provenance
(description_provenance), never promoted to an assessor label. Tests cover the
three gating behaviours. .gitignore: add .venv-pom/, aroma.db, *.log, large v11.6
dataset jsonl.
Former-commit-id: ad4230835bac66729ed85e28cb52aafb628979df
Former-commit-id: ba6b13133db06e31e2256e4d2222f8a7795363f8
docs: triplet expansion 8->20 + GPU A/B run in README and TODO
pytorch CUDA image already ships torch; adding scipy/rdkit/tensorboard/numpy
via a torch --index-url hides them (PyPI replaced). Install the four extras
from PyPI only.
Former-commit-id: f91c41966f49d31da142e652eaaa39c40a56b799
Former-commit-id: 100914ff5f61f9ef4eb81646200b03a14ace2504
Mine material_profiles (molequles) for trade-name -> SMILES in
load_trade_name_structures, in addition to the empirical corpus formula names.
Resolves proprietary trade materials (Isobutavan, Canthoxal, Neofolione,
Indocolore, Centifolether, Romandolide, etc.) that were previously dropped as
no_identity. Admission count 8 -> 20; all 12 new triplets carry authoritative
Fraterworks preference provenance + verified structural discordance.
Former-commit-id: e00c75ca7f7517f897ed01f53f6465f349a8671c
Former-commit-id: 63b884e7d2ee946a6eb700f450a86fea4cf9609b
feat: HF GPU two-arm A/B training job
Matthew Ford
ca7335c
Pulls fresh source + repaired corpus + genuine-POM assets from HF, trains both
representation arms back-to-back on GPU (default 20 epochs, batch 32), runs the
preregistered frozen-benchmark evaluator on each, uploads checkpoints + eval JSON
to mattbitzesty/pino-pimt-representation-ab. Deterministic seed/split; the only
difference between arms is --structural-source.
Former-commit-id: d1d8740e0291c3b84c7d1dc449de8f5fb56c910e
Former-commit-id: 085d3aaf4ea935f52672f6d7a484cf2987f82bc3
docs: mark representation-validation sequence complete in TODO
Matthew Ford
73fe875
All five sequence items checked: ablation, triplet benchmark, prospective
benchmark, gated training (two-arm A/B), single once-only frozen-benchmark
evaluation with all outcomes reported.
Former-commit-id: c6eb69dc5e5297652941ef9cebb70beacbfbf1cd
Former-commit-id: dc135f3c3073fec8e88ddbcff3c8a816773e3d0a
Scores discordant substitution triplets in the model's learned odor-pyramid
space (preferred must be perceptually closer to target than the structural
distractor) and prospective formulas by projecting the model-predicted pyramid
onto family tag-space vs sequestered labels. Single once-only readout per arm;
reports all outcomes including negative.
Former-commit-id: 1c8a0f18a93d2ae3aeba08cb2bea557e70fddf90
Former-commit-id: 8f77d1adff6ab1a31902d5f34f511f545c90e779
feat: --structural-source flag in eval_v6 for arm-matched evaluation
Matthew Ford
19ac1ec
A checkpoint must be evaluated with the same structural embedding block it was
trained on, else a 269-dim POM model receives 151-dim Morgan tokens (dim
mismatch) or vice-versa. Threads the flag into make_validation_dataset.
Former-commit-id: 54339a2eb63ed92e327534b0da854f5393452ac7
Former-commit-id: b632b352e772479c193b7047aec8c2be507228ad
docs: open design decisions + training-readiness gate in README
Matthew Ford
e19ba67
Document the resolved representation question (genuine OpenPOM wins the
ablation; --structural-source toggle), the open objective target-space fork
(138-Pyrfume vs 575-dim molequles multi-tag, held as ablation arm), and the
training-readiness gate contract.
Former-commit-id: 3bf21efe2c8530be879dd6d0176b60ede1187016
Former-commit-id: 9853be9f85a1da09a6909be0fd774b4c15160d17
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
Rewrote freeze_representation_validation.py from a freeze-stub (which overwrote
results with the blocked state) into a pure evaluator that detects genuine
completion from on-disk artifacts without mutating benchmark manifests. The
prior stub had clobbered triplets.jsonl and formulas.jsonl to empty; both
regenerated (triplets: 8 admitted; formulas: 40, seed 20260717).
Checks now green: real_pom_available, ablation_complete,
triplet_count_positive, prospective_formula_count_30_to_50,
prospective_labels_sequestered. decision=READY_FOR_TRAINING.
Former-commit-id: 21ebdddbcfebdbf9f52d2e0396b09676d47b33dc
Former-commit-id: b8cefaa9c42c77f9e1332435fe8e65505813c8b8
feat: full molequles multi-tag target space (575-dim ablation arm)
Matthew Ford
b5c68f0
Mine descriptive tokens from odor_descriptions monograph text (arctander/
goodscents/tgsc) in material_profiles. 575 tags at >=10 occurrences; 1187
CAS with nonzero multi-hot vectors (~10 tags/CAS). Additional target space
per the all-tags directive; 138-Pyrfume basis retained for the primary arm.
Former-commit-id: c0292fe4fd2126c4272ccf2d2548be0d75ff5b61
Former-commit-id: fdbdca6c20417e96065fc1471b45bcab982774f8
feat: curated perfumer tiers for 15 residual CAS (coverage 99.80%)
Matthew Ford
c558e9f
Close the descriptor gap remaining after the molequles Tier-3.5 link. The 15
CAS with no odor text in any source (Musk tonkin, Ylang, Orange flower /
Tuberose absolutes, Styrax, Evernyl, Sandalor, Carvone, Agrumex, Jasmonal,
etc.) got curated top/mid/base labels from known perfumery substantivity.
Ingredient-instance coverage on the repaired corpus: 98.5% -> 99.80%
(uncovered 531 -> 73, the remainder being name-only naturals with no CAS).
Former-commit-id: 76a9dbd288b0dcfe837d0d08c9057974721e7734
Former-commit-id: 76c511e94714920609c1ddb269491fbd11d213c8
feat: prospective formula benchmark (40 in-silico formulas, blinded labels)
Matthew Ford
3fb95e8
40 deliberately-designed formulas from a restricted palette of 51 common
hobbyist-available aroma chemicals (resolved to SMILES via molequles
material_profiles; 32 already in the real-POM asset). Balanced across 5
genres (8 each). Top/heart/base structure via predicted substantivity bands.
Blinding: formulas.jsonl (shareable) separated from
labels.sequestered.json (intended family profiles, access=evaluation_only).
Deterministic --seed 20260717 for reproducibility; sha256 recorded in manifest.
Community physical-compounding arm held open by palette restriction.
Former-commit-id: 72f6a25aff80e51ab0823fe84e7963f04bd36b22
Former-commit-id: 45dd3af973fc06010c31f6e987d0b5448083b59f
Ablation (Morgan vs real-POM vs POM+physics, 5-fold paired bootstrap, 4 tasks):
real POM beats Morgan on every predictive task:
substantivity rho 0.679 vs 0.392 (delta +0.287, 95%CI [+0.206,+0.368])
odor_threshold rho 0.601 vs 0.528 (delta +0.073, [+0.033,+0.111])
descriptor macroF1 0.291 vs 0.137 (delta +0.154, [+0.095,+0.214])
Fixed registry_props() missing odor_threshold_ug_m3 column that silently
emptied the threshold task.
Triplets: 8 discordant substitution triplets with independent supplier
preference provenance and verified structural discordance (Tanimoto
distractor > preferred). Trade names allowed via corpus SMILES resolution.
Former-commit-id: 9a9cc3b596ab176d755008ef34767d4b593009f8
Former-commit-id: c1c93451d76f398702f4621171df8339ba00d9df
feat: link molequles material-profiles odor text into training descriptor matrix
Matthew Ford
a150abf
Add Tier 3.5 to build_master_matrix that reads odor_description /
odor_descriptions from material_profiles (molequles-enriched) and maps it
through the existing Tier-2 tokenizer. Ingredients absent from the registry
(absolutes, natural oils with real CAS) previously fell through every tier to
a zero 138-D vector; 71 of the 120 uncovered CAS already carried usable odor
text in the molequles layer that the build never read.
Ingredient-instance coverage on the repaired empirical corpus: 90.7% -> 98.5%
(531 uncovered instances remain, down from 3353).
Former-commit-id: d6969e81f352267de7efd0e1510f3f17852334d3
Former-commit-id: 319ae38dfaa7809ce4b724562df74fe5932a9766