feat: use AI (OpenRouter) to classify GoodScents prose into perfume tiers
Matthew Ford
Unverified signature
d854014
- Scrape 138 GoodScents pages for dataset CAS using corrected rw<TGSC> URLs
- Regex pre-filter catches unambiguous top/mid/base cases
- OpenRouter AI fallback (gpt-4o-mini) classifies ambiguous prose
- Validate against Poucher ground truth: κ = 1.000 on 42-CAS overlap
- Merge with substantivity-threshold fallback into perfumer_tier_lookup.json
- Dataset coverage: 158/559 CAS = 28.3% (up from 21.5%)
- Add data/goodscents_substantivity_tiers.json output to optimize_subst_thresholds.py
chore: ignore large PDFs, temp scripts, and intermediate extraction artifacts
Matthew Ford
Unverified signature
be78a17
- Ignore downloaded Poucher Vol I PDF (23MB binary)
- Ignore _tmp_*.py temporary scripts
- Ignore intermediate backup/JSON artifacts
feat: merge Poucher and GoodScents tier labels
Matthew Ford
Unverified signature
9936822
- Authoritative Poucher tiers override GoodScents-derived tiers
- Final lookup covers 1,285 CAS; 120/559 dataset CAS (21.5%) have tier labels
- Tier distribution in dataset: 14% top, 58% mid, 28% base
feat: fetch GoodScents substantivity data and calibrate thresholds
Matthew Ford
Unverified signature
e52f355
- Download GoodScents data from Pyrfume (1,208 CAS with substantivity hours)
- Grid-search optimal substantivity thresholds against true Poucher ground truth
- Achieve kappa=0.330 on 83-CAS overlap (top<15h, mid 15-241h, base>=241h)
- Substantivity is a better proxy than OAV/VP but still imperfect
feat: extract perfumer tier labels from Poucher Vol II odour classification tables
Matthew Ford
Unverified signature
e12dde8
- Parse Poucher Vol II odour classification tables (Top/Middle/Basic notes)
- Map 445 material entries to 160 unique CAS via Poucher coefficient system
- Verify VP-based classifier achieves only kappa=0.11 vs perfumer tiers
- Add scripts for extraction and VP comparison
- Replace mean-pool ObjectiveOdorHead with SynergisticObjectiveHead that
attention-pools latent tokens using the per-token OAV physical weight.
- Generate empirical_dataset_v2.jsonl from OAV trajectories with top/heart/base
descriptor profiles aligned to the Pyrfume vocabulary.
- Switch train.py defaults to v2 dataset and pimt_v4.pt checkpoint.
- Update hf_train_job.py to download v2 dataset from pino-synthetic-dataset-v2.
- Update predict_shalimar.py to use pyrfume_vocabulary.json for descriptors.
fix(loss): prevent objective-starvation with fixed task weights; target pimt_v3.pt
The pino.embeddings module instantiates a default OlfactoryEmbeddingEngine
(and therefore AromaRegistry) at import time. This happened before
hf_train_job.py had a chance to set PINO_REGISTRY_PATH, so the registry was
still opened inside the read-only source mount.
Now _prepare_registry() runs before any pino imports, copies the mounted
registry to /workspace/registry.db, and sets PINO_REGISTRY_PATH. Also added a
try/except around train_main() so future failures surface in the logs.
fix(hf_job): writable registry + output dirs for read-only source mounts
- AromaRegistry now respects PINO_REGISTRY_PATH env var.
- hf_train_job.py copies the mounted registry to a writable workspace
location before training, and writes models/runs to /workspace instead
of inside the read-only source mount.
feat(hf_job): allow mounted data/registry paths via env vars
- Add scripts/ingest_tgsc.py for fetching TGSC demonstration formulas,
parsing ingredient tables, normalizing weights, and mapping names to
registry CAS via overrides and fuzzy matching.
- Capture narrative descriptions and per-ingredient TGSC links that were
previously dropped by the scraper.
- Add TGSC ingredient-page odor enrichment with persistent on-disk cache
(scripts/build_tgsc_odor_cache.py) so ingest is resumable.
- Add --enrich-tgsc-odor and --lookup-external flags to the ingest CLI.
- Add requests, beautifulsoup4, and openai to project dependencies.
- Add 15 new NATURAL_PROFILES for perfumery essential oils/resinoids/absolute.
- scripts/predict_shalimar.py preserves NATURAL:* tokens for the transformer,
flattens them only for VLE/UNIFAC simulation, and aggregates constituent
physics back to the parent tokens.
- Adds category-based comparison with website notes and a gradient backtest.
- Ignore generated reports/ in .gitignore.
fix(embeddings): handle registry records with empty openpom/shape embeddings