TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Cocktail Similarity

217 点作者 dlg大约 6 年前

13 条评论

andybak大约 6 年前
&gt; A Manhattan is a Martini but you replace dry vermouth with bitters, replace gin with sweet vermouth, and add whiskey.<p>No, it&#x27;s not.<p>What&#x27;s missing is a sense of &quot;role&quot;. Spirits should map to spirits, liqueurs to liqueurs etc.<p>There&#x27;s usually only a few &quot;slots&quot; with cocktails: one (or sometimes a few) base spirits, something aromatic such as bitters or a vermouth, a sweet thing and&#x2F;or a citrus.<p>(I once made a spreadsheet that I dubbed &quot;the period table of cocktails - turns out the gaps usually lead you to an obscure variation you&#x27;d never heard of)
评论 #19240236 未加载
评论 #19240801 未加载
评论 #19239598 未加载
评论 #19240424 未加载
评论 #19244095 未加载
评论 #19239829 未加载
评论 #19239789 未加载
评论 #19241396 未加载
strictnein大约 6 年前
Death &amp; Co&#x27;s second book, &quot;Cocktail Codex&quot; [0], has a somewhat similar approach. The thrust of the book is that there are six root cocktails, and everything else is just a variation on them.<p>That book, and Death &amp; Co&#x27;s first book, &quot;Modern Classic Cocktails&quot; [1], are good reads for the person who is a fan of quality cocktails and wants to make something at home that&#x27;s really good, and frequently better than what you get when you&#x27;re dining out.<p>You will likely need to invest in some booze and stuff to be able to fully enjoy them, but just pick a drink a week, buy what you need, and pretty soon you&#x27;ll have a collection that will allow you to make most of the things in the books.<p>[0] <a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Cocktail-Codex-Fundamentals-Formulas-Evolutions&#x2F;dp&#x2F;160774970X" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Cocktail-Codex-Fundamentals-Formulas-...</a><p>[1] <a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Death-Co-Modern-Classic-Cocktails&#x2F;dp&#x2F;1607745259&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Death-Co-Modern-Classic-Cocktails&#x2F;dp&#x2F;...</a>
评论 #19239725 未加载
评论 #19241823 未加载
whiddershins大约 6 年前
So I got:<p>“A Manhattan is a Martini but you replace dry vermouth with bitters, replace gin with sweet vermouth, and add whiskey.”<p>This is the wrong way to think about it. The rye (aka “whiskey”) in a Manhattan is conceptually and functionally equivalent to the gin in the martini.<p>The graph doesn’t seem to understand the concept of base liquor, which makes it a really cool exercise, but not functional.<p>Still, I love the idea.
collinf大约 6 年前
&quot;A Manhattan is a Screwdriver but you replace orange juice with bitters, replace vodka with sweet vermouth, and add whiskey.&quot;<p>Can&#x27;t wait to explain this one to my bartender tonight!
评论 #19239741 未加载
评论 #19238980 未加载
tyingq大约 6 年前
I use Levenshtein matching for a small business. We take in orders, and some of them end up being ordered from a partner that ships them out. They often change the shipping address in small ways, and don&#x27;t provide a nice api for us to match orders to tracking numbers. Instead, we just get an email from Fedex or UPS.<p>So, we trawl IMAP to extract the addresses and find close matches for open orders with Levenshtein. Not perfect, especially when one customer places more than one order, but saves us a lot of time.
评论 #19238814 未加载
评论 #19239433 未加载
dahart大约 6 年前
Since order and ingredient category does matter for some cocktails, you could really geek out on this a lot farther, and take it way off the deep end... categorize by liquor base, by mixers, by sweet or savory flavorings, by solidity, by acidity, by temperature, by water&#x2F;ice content, by garnishes, etc., etc., and then use edit distance on trees rather that on sets.
评论 #19242115 未加载
评论 #19239475 未加载
dragonwriter大约 6 年前
&gt; Cocktail edit distance is a bit different - primarily because order doesn’t matter. It’s just set difference, or set distance.<p>Well, no, quantity matters for cocktails, which puts it in the opposite direction of set distance from a comparison where only order matters in terms of complexity.
评论 #19241623 未加载
评论 #19239416 未加载
peterwwillis大约 6 年前
The problem with this analysis is lack of depth. Changing any step of the recipe (the ingredients, measurements, temperatures, cooking vessels, order of operations, even presentation) can result in vastly different products.<p>Firstly, you need similar measurements. Second, replacing one ingredient for another affects the chemical composition that directly influences the perceived flavor (sweet, bitter, sour, salt, fat). Third, the physical acts of stirring vs shaking affect texture, temperature, and dilution all at once.<p>All this would need to be added to the model to begin to approximate actually similar cocktails, and not just a comparison like <i>&quot;Hey, you can take the sugar and eggs out of cake and make bread!&quot;</i><p>(The fact that the author conflates sweet and dry vermouth is also not great; that&#x27;s like confusing a Riesling with Extra Brut Champagne)
bonniemuffin大约 6 年前
I spotted an interesting data standardization anomaly:<p>&quot;A The Last Word is a Gin Gimlet but you replace simple syrup with green chartreuse, replace lime juice with maraschino, and add lime.&quot;<p>It appears that &quot;lime juice&quot; and &quot;lime&quot; exist as separate ingredients in the ingredient lists, even though they&#x27;re exactly the same thing. It looks like this is causing a false separation of the Last Word cluster (drinks containing &quot;lime&quot;) from the Gimlet cluster (drinks containing &quot;lime juice&quot;) in the 2D plots.
评论 #19239395 未加载
评论 #19239058 未加载
chiefalchemist大约 6 年前
It was explained to me that cocktails are a combination of flavors. That is, for example, sweet + dry + sour + ... you get the point. Making a good cocktail is about balancing those various attributes, based on the characteristics of the base ingredients.
评论 #19242703 未加载
btbuildem大约 6 年前
I think this project would&#x27;ve benefitted from consulting a good bartender -- or at least a barfly - to identify the key dimensions and the scaling vectors.<p>As other commenters pointed out, there&#x27;s a whole science behind how the ingredients associate.
golemotron大约 6 年前
What cosmology of mixology doesn&#x27;t have a G&amp;T?
评论 #19241737 未加载
stendinator大约 6 年前
Should&#x27;ve called it Cocktail Hamming Distance