3 ms·
A char-RNN is a bad way to go about it. The results are effectively random - there's a ton of structure in recipe-space, but forcing it all through the bottlene
by gwern 8y ago
A char-RNN is a bad way to go about it. The results are effectively random - there's a ton of structure in recipe-space, but forcing it all through the bottleneck of text (and then sampling!) is going to hide a lot of it. You want something like "Sukiyaki in French style: A novel system for transformation of dietary patterns" https://arxiv.org/abs/1705.03487 https://arxiv.org/abs/1705.03487, Kazama et al 2017's `word2vec` (using structured recipes like https://open.blogs.nytimes.com/2015/04/09/extracting-structured-data-from-recipes-using-conditional-random-fields/ https://open.blogs.nytimes.com/2015/04/09/extracting-structu... ); or IBM Watson's recipe generation ( https://www.eater.com/2014/2/26/6272773/food-truck-is-actually-serving-ibms-insane-computer-generated-dishes https://www.eater.com/2014/2/26/6272773/food-truck-is-actual... https://www.newyorker.com/magazine/2016/11/28/cooking-with-chef-watson-ibms-artificial-intelligence-app https://www.newyorker.com/magazine/2016/11/28/cooking-with-c... ).
- minimaxir 8y agoI think the intent (and this blog in general) is more for fun rather than an academic exercise.
- gwern 8y agoIf you used better approaches, the recipes sampled would be a lot more fun to evaluate and discuss. With generative stuff, there's a sort of inverse uncanny valley: it's only when it gets very close to perfect that it's really interesting to look at, because that's where you get the most creativity and reactions like 'I can't believe that worked' or 'maybe...'. For example, I find that sukiyaki paper a lot more fun to read than OP, because the recipes are meaningful rather than random gibberish. ('cranked red onion' is not actually amusing, it's just gibberish).
- deleted 8y ago[deleted]
- samcodes 8y agoBut overall it _did_ capture most of the structure. Other than a few adjectives, everything it required was real, and most of the combinations were exotic but good. However, thanks for sharing the Kazama paper, that looks really interesting.
- tomcooks 8y agoWord2vec approach would also create pizzas that follow the traditional ingredients pairings
- gwern 8y agoRecipes aren't dense. If you sample ingredients and then random neighbors, you'll get new recipes. You can also do much more like 'style transfer' for recipes (which is the point of the paper I linked), which are definitely not traditional.