flavor_engine
Vape Cart Flavor Engine — 11D gustatory interpolation and NCM coupling.
- Implements the 6-phase blend pipeline:
Raw weighted vector summation
Interaction matrix corrections (suppression/synergy/cross-modal)
Temporal phase reconstruction → TDS string
NCM cascade computation (Hill saturation + receptor synergies)
Nearest-neighbor classification + novelty score
Derived metrics (palatability, reward_density, cling, nostalgia)
Also: morph, temperature modification, cascade trigger detection, emergence.
- class flavor_engine.FlavorProfile(name, vector, delta_str, temporal, norimaki_inv=None, retronasal=0.5, category='other')[source]
Bases:
objectA single flavour from the cart.
- Parameters:
- class flavor_engine.CompositeResult(vector, raw_vector, ncm_deltas, tds_string, temporal_phases, derived_metrics, nearest_flavor, nearest_similarity, novelty_score, emergence_flags, cascade_triggers, attractor=None, ingredients=<factory>)[source]
Bases:
objectOutput of a blend/morph computation.
- class flavor_engine.FlavorEngine(yaml_path=None)[source]
Bases:
object11-dimensional gustatory computation engine.
- Parameters:
yaml_path (Optional[str])
- get_flavor(name)[source]
Look up a single flavor by name (case-insensitive).
- Return type:
- Parameters:
name (str)
- blend(recipe)[source]
Run the full 6-phase blend pipeline.
- morph(flavor_a, flavor_b, t=0.5)[source]
Interpolate between two flavors at point t ∈ [0, 1].
- Return type:
- Parameters:
- apply_temperature(profile, temp_c)[source]
Return a new FlavorProfile with temperature modifications.
- Return type:
- Parameters:
profile (FlavorProfile)
temp_c (float)