Related: Awesome visual essay about using algorithms to generate (bad) cookie recipes https://pudding.cool/2018/05/cookies/
Three bad recipes generated by neural network (2017)
11–16 of 16 posts
Re: Three bad recipes generated by neural network (2017)
#12There's no information on the training (the link on the top first asks me to accept targeted ads so, no) but it looks like an LSTM trained to predict the next character (hence the nonsensical names of the recipes and some other words, clearly invented by the network to approximate real words in its training data). In a way it's really impressive that this sort of setup can learn such rigid structure.
On the other hand, not an expert, but I'm pretty sure there are ways to force the network to learn that the ingredients list and the prepration section must be somehow related. I think, something something attention something would make for more coherent results :)
Re: Three bad recipes generated by neural network (2017)
#13If you put whole recipes into the neural network, of course it won't work. You need to separate the parts. One neural network for ingredients, and a separate one for "instructions". Then you feed the output of the first network into the second to get a set of preparations that actually prepare the chosen ingredients.
What about your solution makes it right?
The ingredients are a set of items. Preparation is a sequence of steps with the ingredients as input. A neural network taught on lots of recipes should be able to come with sequences that actually make sense given the ingredients.
Re: Three bad recipes generated by neural network (2017)
#14Earlier quoted context omitted.
What about your solution makes it right?
I would think it wouldn't get things right. But it should get things less incorrect. The ingredients are a set of items. Preparation is a sequence of steps with the ingredients as input. A neural network taught on lots of recipes should be able to come with sequences that actually make sense given the ingredients.
Re: Three bad recipes generated by neural network (2017)
#15Earlier quoted context omitted.
I would think it wouldn't get things right. But it should get things less incorrect. The ingredients are a set of items. Preparation is a sequence of steps with the ingredients as input. A neural network taught on lots of recipes should be able to come with sequences that actually make sense given the ingredients.
The choice of ingredients is also a function of the desired preparation / serving. This will probably generate more realistic recipes but still nothing usable.