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(heads): decompose subjective head and add contrastive projection
Split subjective output into seasonality logits, gender scalar, and
wearability logits. Add L2-normalized contrastive projection head for
InfoNCE-style perceptual training.
feat(data): wire structured Poucher profiles into text conditioning pipeline
- Add seed_everything for reproducibility
- Add compute_metrics for objective MSE and subjective MAE
- Fuse labels into single (B,T,145) tensor for HF Trainer
- Export publication_metrics.json after training
- Add load_best_model_at_end and tensorboard logging
chore(pino): add run_training entry point for Space compatibility
- 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
feat(literature): add trade-name resolver, Poucher/Arctander parsers, and PyMuPDF extraction scripts
- Add src/pino/ingest_formulas.py to normalize raw literature recipes
- Support recursive sub_base unpacking to pure CAS
- Integrate --seed-id into pino-critic compose and run_generation.py
- Add sample Poucher chypre manifest in data/literature_formulas.json
feat(scraper): TGSC enrichment with mmHg->Pa conversion and priority registry updates
Why: each CMA-ES evaluation was downloading/running the model from the Space
fallback, which is too slow for hundreds of candidates and broke when the Space
was sleeping or rebuilding. Now FormulationOptimizer loads the critic once and
uses _predict_local directly.
Also fixes IFRA projection with iterative water-filling so re-normalisation never
re-inflates a capped ingredient above its IFRA limit, and filters the palette to
exclude solvents and restricted materials.
Why:
- Downstream agents need to turn sensory targets into manufacture-ready formulas
without manually searching ingredient space or violating IFRA limits.
- CMA-ES was chosen over a VAE/GAN because it naturally handles hard constraints
(mass balance, safety thresholds, physical simulation failures) via projection
and rejection, while adapting its covariance to the local fitness landscape.
What:
- Implement FormulationOptimizer in src/pino/optimizer.py using CMA-ES.
- Palette is sampled from the SQLite aroma registry; weights are projected to the
unit simplex and clipped to IFRA Category 4 limits every iteration.
- Each candidate is verified by FragrancePipelineVerifier, encoded for the PIMT
critic, and scored by weighted MSE against objective/subjective targets.
- Add CompositionTarget.from_text/from_json helpers for natural-language briefs.
- Add pino-critic compose subcommand with --target-json, --max-iterations,
--palette-size, --allow-synthetic, --seed, and --json fla…
fix: skip non-formulation records in dataset loader; keep feedback separate from dataset JSONL